code: public synchronized boolean updateNodeFrameParameters(int streamID, int newPriority, int newParentStreamID, boolean exclusive) {
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "updateNodeFrameParameters entry: streamID to udpate: " + streamID + " new Priority: " + newPriority
                           + " new Parent stream ID: " + newParentStreamID + " exclusive: " + exclusive);
          }
  
          Node nodeToChange = root.findNode(streamID);
          Node oldParent = nodeToChange.getParent();
          if ((nodeToChange == null) || (oldParent == null)) {
              return false;
          }
  
          int oldParentStreamID = oldParent.getStreamID();
          int oldPriority = nodeToChange.getPriority();
  
          // change parent if specified
          if ((newParentStreamID != oldParentStreamID) || (exclusive)) {
              changeParent(streamID, newPriority, newParentStreamID, exclusive);
          } else {
              // parent won't change, therefore only change the priority and write counts, if it is different
              if (newPriority != oldPriority) {
                  nodeToChange.setPriority(newPriority);
                  oldParent.clearDependentsWriteCount();
                  oldParent.sortDependents();
                  // special debug - too verbose for big trees
                  //if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  //    Tr.debug(tc, "updateNodeFrameParameters after sorting: tree is now:" + getTreeDump());
                  //}
  
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "updateNodeFrameParameters exit: node changed: " + nodeToChange.toStringDetails());
          }
  
          return true;
      }
docs: Change the priority of the desired stream/node.
  Reset all the sibling weighted priorities and re-sort the siblings, since once on priority changes, all priority ratios need to be updated and changed.
  
  @param streamID
  @param newPriority
  @param newParent
  @param exclusive
  @return the Node that was changed, null if the node could not be found