public static interface Http2Connection.Listener
Modifier and Type | Method and Description |
---|---|
void |
goingAway()
Called when a GO_AWAY frame has either been sent or received for the connection.
|
void |
onWeightChanged(Http2Stream stream,
short oldWeight)
Notifies the listener that the weight has changed for
stream |
void |
priorityTreeParentChanged(Http2Stream stream,
Http2Stream oldParent)
Notifies the listener that a priority tree parent change has occurred.
|
void |
priorityTreeParentChanging(Http2Stream stream,
Http2Stream newParent)
Notifies the listener that a parent dependency is about to change
This is called while the tree is being restructured and so the tree
structure is not necessarily steady state.
|
void |
streamActive(Http2Stream stream)
Notifies the listener that the given stream was made active (i.e. open in at least one
direction).
|
void |
streamAdded(Http2Stream stream)
Notifies the listener that the given stream was added to the connection.
|
void |
streamHalfClosed(Http2Stream stream)
Notifies the listener that the given stream is now half-closed.
|
void |
streamInactive(Http2Stream stream)
Notifies the listener that the given stream is now closed in both directions.
|
void |
streamRemoved(Http2Stream stream)
Notifies the listener that the given stream has now been removed from the connection and
will no longer be returned via
Http2Connection.stream(int) . |
void streamAdded(Http2Stream stream)
void streamActive(Http2Stream stream)
void streamHalfClosed(Http2Stream stream)
void streamInactive(Http2Stream stream)
void streamRemoved(Http2Stream stream)
Http2Connection.stream(int)
. The connection may
maintain inactive streams for some time before removing them.void priorityTreeParentChanged(Http2Stream stream, Http2Stream oldParent)
stream
- The stream which had a parent change (new parent and children will be steady state)oldParent
- The old parent which stream
used to be a child of (may be null
)void priorityTreeParentChanging(Http2Stream stream, Http2Stream newParent)
stream
- The stream which the parent is about to change to newParent
newParent
- The stream which will be the parent of stream
void onWeightChanged(Http2Stream stream, short oldWeight)
stream
stream
- The stream which the weight has changedoldWeight
- The old weight for stream
void goingAway()
Copyright © 2008–2015 The Netty Project. All rights reserved.