Package | Description |
---|---|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
Modifier and Type | Field and Description |
---|---|
protected Http2Stream |
DefaultHttp2ConnectionEncoder.FlowControlledBase.stream |
Modifier and Type | Method and Description |
---|---|
Http2Stream |
Http2Stream.child(int streamId)
Attempts to find a child of this stream with the given ID.
|
Http2Stream |
Http2Stream.close()
Closes the stream.
|
Http2Stream |
Http2Stream.closeLocalSide()
Closes the local side of this stream.
|
Http2Stream |
Http2Stream.closeRemoteSide()
Closes the remote side of this stream.
|
Http2Stream |
Http2Connection.connectionStream()
Gets the stream object representing the connection, itself (i.e. stream zero).
|
Http2Stream |
DefaultHttp2Connection.connectionStream() |
Http2Stream |
Http2Connection.createLocalStream(int streamId)
Creates a new stream initiated by the local endpoint
|
Http2Stream |
DefaultHttp2Connection.createLocalStream(int streamId) |
Http2Stream |
Http2Connection.createRemoteStream(int streamId)
Creates a new stream initiated by the remote endpoint.
|
Http2Stream |
DefaultHttp2Connection.createRemoteStream(int streamId) |
Http2Stream |
Http2Connection.Endpoint.createStream(int streamId)
Creates a stream initiated by this endpoint.
|
Http2Stream |
Http2Stream.open(boolean halfClosed)
Add this stream to
Http2Connection.activeStreams() and transition state to:
Http2Stream.State.OPEN if state() is Http2Stream.State.IDLE and halfClosed is false . |
Http2Stream |
Http2Stream.parent()
The parent (i.e. the node in the priority tree on which this node depends), or
null
if this is the root node (i.e. the connection, itself). |
Http2Stream |
Http2Connection.requireStream(int streamId)
Attempts to get the stream for the given ID.
|
Http2Stream |
DefaultHttp2Connection.requireStream(int streamId) |
Http2Stream |
Http2Connection.Endpoint.reservePushStream(int streamId,
Http2Stream parent)
Creates a push stream in the reserved state for this endpoint and notifies all listeners.
|
Http2Stream |
Http2Stream.resetSent()
Sets the flag indicating that a
RST_STREAM frame has been sent from the local endpoint
for this stream. |
Http2Stream |
Http2Stream.setPriority(int parentStreamId,
short weight,
boolean exclusive)
Updates an priority for this stream.
|
Http2Stream |
Http2Connection.stream(int streamId)
Gets the stream if it exists.
|
Http2Stream |
DefaultHttp2Connection.stream(int streamId) |
Modifier and Type | Method and Description |
---|---|
Collection<Http2Stream> |
Http2Connection.activeStreams()
Gets all streams that are actively in use.
|
Set<Http2Stream> |
DefaultHttp2Connection.activeStreams() |
Collection<? extends Http2Stream> |
Http2Stream.children()
Gets all streams that are direct dependents on this stream.
|
Modifier and Type | Method and Description |
---|---|
void |
Http2LifecycleManager.closeLocalSide(Http2Stream stream,
ChannelFuture future)
Closes the local side of the given stream.
|
void |
Http2ConnectionHandler.closeLocalSide(Http2Stream stream,
ChannelFuture future)
Closes the local side of the given stream.
|
void |
Http2LifecycleManager.closeRemoteSide(Http2Stream stream,
ChannelFuture future)
Closes the remote side of the given stream.
|
void |
Http2ConnectionHandler.closeRemoteSide(Http2Stream stream,
ChannelFuture future)
Closes the remote side of the given stream.
|
void |
Http2LifecycleManager.closeStream(Http2Stream stream,
ChannelFuture future)
Closes the given stream and adds a hook to deactivate the stream and close the channel after
the given future completes.
|
void |
Http2ConnectionHandler.closeStream(Http2Stream stream,
ChannelFuture future)
Closes the given stream and adds a hook to close the channel after the given future
completes.
|
void |
Http2LocalFlowController.consumeBytes(ChannelHandlerContext ctx,
Http2Stream stream,
int numBytes)
Indicates that the application has consumed a number of bytes for the given stream and is
therefore ready to receive more data from the remote endpoint.
|
void |
DefaultHttp2LocalFlowController.consumeBytes(ChannelHandlerContext ctx,
Http2Stream stream,
int numBytes) |
void |
Http2Connection.deactivate(Http2Stream stream)
Indicates that the given stream is no longer actively in use.
|
void |
DefaultHttp2Connection.deactivate(Http2Stream stream) |
void |
Http2FlowController.incrementWindowSize(ChannelHandlerContext ctx,
Http2Stream stream,
int delta)
Increments the size of the stream's flow control window by the given delta.
|
void |
DefaultHttp2RemoteFlowController.incrementWindowSize(ChannelHandlerContext ctx,
Http2Stream stream,
int delta) |
void |
DefaultHttp2LocalFlowController.incrementWindowSize(ChannelHandlerContext ctx,
Http2Stream stream,
int delta) |
boolean |
Http2Stream.isDescendantOf(Http2Stream stream)
Indicates whether or not this stream is a descendant in the priority tree from the given stream.
|
void |
DefaultHttp2StreamRemovalPolicy.markForRemoval(Http2Stream stream) |
void |
Http2StreamRemovalPolicy.markForRemoval(Http2Stream stream)
Marks the given stream for removal.
|
void |
Http2ConnectionAdapter.onWeightChanged(Http2Stream stream,
short oldWeight) |
void |
Http2EventAdapter.onWeightChanged(Http2Stream stream,
short oldWeight) |
void |
Http2Connection.Listener.onWeightChanged(Http2Stream stream,
short oldWeight)
Notifies the listener that the weight has changed for
stream |
void |
InboundHttp2ToHttpPriorityAdapter.onWeightChanged(Http2Stream stream,
short oldWeight) |
void |
Http2ConnectionAdapter.priorityTreeParentChanged(Http2Stream stream,
Http2Stream oldParent) |
void |
Http2EventAdapter.priorityTreeParentChanged(Http2Stream stream,
Http2Stream oldParent) |
void |
Http2Connection.Listener.priorityTreeParentChanged(Http2Stream stream,
Http2Stream oldParent)
Notifies the listener that a priority tree parent change has occurred.
|
void |
InboundHttp2ToHttpPriorityAdapter.priorityTreeParentChanged(Http2Stream stream,
Http2Stream oldParent) |
void |
Http2ConnectionAdapter.priorityTreeParentChanging(Http2Stream stream,
Http2Stream newParent) |
void |
Http2EventAdapter.priorityTreeParentChanging(Http2Stream stream,
Http2Stream newParent) |
void |
Http2Connection.Listener.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 |
Http2LocalFlowController.receiveFlowControlledFrame(ChannelHandlerContext ctx,
Http2Stream stream,
ByteBuf data,
int padding,
boolean endOfStream)
Receives an inbound
DATA frame from the remote endpoint and applies flow control
policies to it for both the stream as well as the connection. |
void |
DefaultHttp2LocalFlowController.receiveFlowControlledFrame(ChannelHandlerContext ctx,
Http2Stream stream,
ByteBuf data,
int padding,
boolean endOfStream) |
void |
Http2StreamRemovalPolicy.Action.removeStream(Http2Stream stream)
Removes the stream from the registry.
|
Http2Stream |
Http2Connection.Endpoint.reservePushStream(int streamId,
Http2Stream parent)
Creates a push stream in the reserved state for this endpoint and notifies all listeners.
|
void |
DefaultHttp2RemoteFlowController.sendFlowControlled(ChannelHandlerContext ctx,
Http2Stream stream,
Http2RemoteFlowController.FlowControlled payload) |
void |
Http2RemoteFlowController.sendFlowControlled(ChannelHandlerContext ctx,
Http2Stream stream,
Http2RemoteFlowController.FlowControlled payload)
Writes or queues a payload for transmission to the remote endpoint.
|
void |
Http2ConnectionAdapter.streamActive(Http2Stream stream) |
void |
Http2EventAdapter.streamActive(Http2Stream stream) |
void |
Http2Connection.Listener.streamActive(Http2Stream stream)
Notifies the listener that the given stream was made active (i.e. open in at least one
direction).
|
void |
Http2ConnectionAdapter.streamAdded(Http2Stream stream) |
void |
Http2EventAdapter.streamAdded(Http2Stream stream) |
void |
Http2Connection.Listener.streamAdded(Http2Stream stream)
Notifies the listener that the given stream was added to the connection.
|
void |
Http2ConnectionAdapter.streamHalfClosed(Http2Stream stream) |
void |
Http2EventAdapter.streamHalfClosed(Http2Stream stream) |
void |
Http2Connection.Listener.streamHalfClosed(Http2Stream stream)
Notifies the listener that the given stream is now half-closed.
|
void |
Http2ConnectionAdapter.streamInactive(Http2Stream stream) |
void |
Http2EventAdapter.streamInactive(Http2Stream stream) |
void |
Http2Connection.Listener.streamInactive(Http2Stream stream)
Notifies the listener that the given stream is now closed in both directions.
|
void |
Http2ConnectionAdapter.streamRemoved(Http2Stream stream) |
void |
Http2EventAdapter.streamRemoved(Http2Stream stream) |
void |
InboundHttp2ToHttpAdapter.streamRemoved(Http2Stream stream) |
void |
Http2Connection.Listener.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) . |
int |
Http2LocalFlowController.unconsumedBytes(Http2Stream stream)
The number of bytes for the given stream that have been received but not yet consumed by the
application.
|
int |
DefaultHttp2LocalFlowController.unconsumedBytes(Http2Stream stream) |
int |
Http2FlowController.windowSize(Http2Stream stream)
Gets the number of bytes remaining in the flow control window size for the given stream.
|
int |
DefaultHttp2RemoteFlowController.windowSize(Http2Stream stream) |
int |
DefaultHttp2LocalFlowController.windowSize(Http2Stream stream) |
void |
DefaultHttp2LocalFlowController.windowUpdateRatio(ChannelHandlerContext ctx,
Http2Stream stream,
float ratio)
The window update ratio is used to determine when a window update must be sent.
|
float |
DefaultHttp2LocalFlowController.windowUpdateRatio(Http2Stream stream)
The window update ratio is used to determine when a window update must be sent.
|
Constructor and Description |
---|
DefaultHttp2ConnectionEncoder.FlowControlledBase(ChannelHandlerContext ctx,
Http2Stream stream,
int padding,
boolean endOfStream,
ChannelPromise promise) |
Copyright © 2008–2015 The Netty Project. All rights reserved.