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.Listener
streamAdded
in interface Http2Connection.Listener
public void streamActive(Http2Stream stream)
Http2Connection.Listener
streamActive
in interface Http2Connection.Listener
public void streamHalfClosed(Http2Stream stream)
Http2Connection.Listener
streamHalfClosed
in interface Http2Connection.Listener
public void streamInactive(Http2Stream stream)
Http2Connection.Listener
streamInactive
in interface Http2Connection.Listener
public void streamRemoved(Http2Stream stream)
Http2Connection.Listener
Http2Connection.stream(int)
. The connection may
maintain inactive streams for some time before removing them.streamRemoved
in interface Http2Connection.Listener
public void goingAway()
Http2Connection.Listener
goingAway
in interface Http2Connection.Listener
public void priorityTreeParentChanged(Http2Stream stream, Http2Stream oldParent)
Http2Connection.Listener
priorityTreeParentChanged
in interface Http2Connection.Listener
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
)public void priorityTreeParentChanging(Http2Stream stream, Http2Stream newParent)
Http2Connection.Listener
priorityTreeParentChanging
in interface Http2Connection.Listener
stream
- The stream which the parent is about to change to newParent
newParent
- The stream which will be the parent of stream
public void onWeightChanged(Http2Stream stream, short oldWeight)
Http2Connection.Listener
stream
onWeightChanged
in interface Http2Connection.Listener
stream
- The stream which the weight has changedoldWeight
- The old weight for stream
Copyright © 2008–2015 The Netty Project. All rights reserved.