public void registerStream ( int streamId , int dependency , int weighting , boolean exclusive ) { final Http2PriorityNode node = new Http2PriorityNode ( streamId , weighting ) ; if ( exclusive ) { Http2PriorityNode existing = nodesByID . get ( dependency ) ; if ( existing != null ) { existing . exclusive ( node ) ; } } else { Http2PriorityNode existing = nodesByID . get ( dependency ) ; if ( existing != null ) { existing . addDependent ( node ) ; } } nodesByID . put ( streamId , node ) ; }
Resisters a stream with its dependency and dependent information