public class Http2ConnectionAdapter extends Object implements Http2Connection.Listener
Http2Connection.Listener methods.| Constructor and Description |
|---|
Http2ConnectionAdapter() |
| 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). |
public void streamAdded(Http2Stream stream)
Http2Connection.ListenerstreamAdded in interface Http2Connection.Listenerpublic void streamActive(Http2Stream stream)
Http2Connection.ListenerstreamActive in interface Http2Connection.Listenerpublic void streamHalfClosed(Http2Stream stream)
Http2Connection.ListenerstreamHalfClosed in interface Http2Connection.Listenerpublic void streamInactive(Http2Stream stream)
Http2Connection.ListenerstreamInactive in interface Http2Connection.Listenerpublic void streamRemoved(Http2Stream stream)
Http2Connection.ListenerHttp2Connection.stream(int). The connection may
maintain inactive streams for some time before removing them.streamRemoved in interface Http2Connection.Listenerpublic void goingAway()
Http2Connection.ListenergoingAway in interface Http2Connection.Listenerpublic void priorityTreeParentChanged(Http2Stream stream, Http2Stream oldParent)
Http2Connection.ListenerpriorityTreeParentChanged in interface Http2Connection.Listenerstream - 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)public void priorityTreeParentChanging(Http2Stream stream, Http2Stream newParent)
Http2Connection.ListenerpriorityTreeParentChanging in interface Http2Connection.Listenerstream - The stream which the parent is about to change to newParentnewParent - The stream which will be the parent of streampublic void onWeightChanged(Http2Stream stream, short oldWeight)
Http2Connection.ListenerstreamonWeightChanged in interface Http2Connection.Listenerstream - The stream which the weight has changedoldWeight - The old weight for streamCopyright © 2008–2015 The Netty Project. All rights reserved.