| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private GoAway | |
| protected final VertxHttp2ConnectionHandler | |
| protected final ChannelHandlerContext | |
| private Http2Settings | |
| private static final Logger | |
| private long | |
| private Handler | |
| private final ArrayDeque | |
| private Http2Settings | |
| private Handler | |
| private boolean | |
| private Handler | |
| protected final Http2Connection. | |
| private final ArrayDeque | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | Http2ConnectionBase(ContextInternal context, VertxHttp2ConnectionHandler<C extends Http2ConnectionBase> handler)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Future | close()
Overrides io. Implements io. Like |
| public Http2ConnectionBase | closeHandler(Handler<Void>
the handler to be notified handler)Overrides io. Implements io. Set a close handler. |
| protected void | |
| pack-priv void | |
| protected void | |
| public Http2ConnectionBase | exceptionHandler(Handler<Throwable>
the handler handler)Overrides io. Implements io. Set an handler called when a connection error happens |
| public int | |
| public HttpConnection | goAway(long
the GOAWAY error code errorCode, int the last stream id lastStreamId, Buffer additional debug data sent to the remote endpoint debugData)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Send a go away frame to the remote endpoint of the connection. |
| public synchronized HttpConnection | |
| public void | |
| protected void | handleIdle(IdleStateEvent event)
Overrides io. Called by the Netty handler when the connection becomes idle. |
| protected void | handleInterestedOpsChanged()
Implements abstract io.
|
| pack-priv synchronized void | |
| public int | onDataRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, ByteBuf payload buffer for the frame. This buffer will be released by the codec. data, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean Indicates whether this is the last frame to be sent from the remote endpoint for this stream. endOfStream)Implements io. Handles an inbound |
| public void | onGoAwayRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the last known stream of the remote endpoint. lastStreamId, long the error code, if abnormal closure. errorCode, ByteBuf application-defined debug data. If this buffer needs to be retained by the
listener they must make a copy. debugData)Implements io. Handles an inbound |
| pack-priv boolean | |
| pack-priv boolean | |
| public void | onHeadersRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, Http2Headers the received headers. headers, int the stream on which this stream depends, or 0 if dependent on the
connection. streamDependency, short the new weight for the stream. weight, boolean whether or not the stream should be the exclusive dependent of its parent. exclusive, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean Indicates whether this is the last frame to be sent from the remote endpoint
for this stream. endOfStream)Implements io. Handles an inbound |
| public void | onHeadersRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, Http2Headers the received headers. headers, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean Indicates whether this is the last frame to be sent from the remote endpoint
for this stream. endOfStream)Implements io. Handles an inbound |
| protected abstract void | onHeadersRead(int streamId, Http2Headers headers, StreamPriority streamPriority, boolean endOfStream)
|
| public void | onPingAckRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, long the payload of the frame. data)Implements io. Handles an inbound |
| public void | onPingRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, long the payload of the frame. data)Implements io. Handles an inbound |
| public void | onPriorityRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, int the stream on which this stream depends, or 0 if dependent on the
connection. streamDependency, short the new weight for the stream. weight, boolean whether or not the stream should be the exclusive dependent of its parent. exclusive)Implements io. Handles an inbound |
| public void | onPushPromiseRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the stream the frame was sent on. streamId, int the ID of the promised stream. promisedStreamId, Http2Headers the received headers. headers, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding)Implements io. Handles an inbound |
| public void | onRstStreamRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the stream that is terminating. streamId, long the error code identifying the type of failure. errorCode)Implements io. Handles an inbound |
| public void | onSettingsAckRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx)Implements io. Handles an inbound |
| public void | onSettingsRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, Http2Settings the settings received from the remote endpoint. settings)Implements io. Handles an inbound |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | onUnknownFrame(ChannelHandlerContext
the context from the handler where the frame was read. ctx, byte the frame type from the HTTP/2 header. frameType, int the stream the frame was sent on. streamId, Http2Flags the flags in the frame header. flags, ByteBuf the payload of the frame. payload)Implements io. Handler for a frame not defined by the HTTP/2 spec. |
| public void | onWindowUpdateRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the stream the frame was sent on. streamId, int the increased number of bytes of the remote endpoint's flow
control window. windowSizeIncrement)Implements io. Handles an inbound |
| public Future | ping(Buffer data)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public HttpConnection | ping(Buffer
the 8 bytes data of the frame data, Handler<AsyncResult<Buffer>> an async result handler notified with pong reply or the failure pongHandler)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Send a PING frame to the remote endpoint. |
| public synchronized HttpConnection | |
| public synchronized Http2Settings | |
| public synchronized HttpConnection | remoteSettingsHandler(Handler<Http2Settings>
the handler for remote endpoint settings handler)Implements io. Set an handler that is called when remote endpoint |
| private static ByteBuf | |
| public synchronized Http2Settings | |
| public HttpConnection | setWindowSize(int
the new window size windowSize)Overrides default io. Update the current connection wide window size to a new size. |
| public Future | shutdown(long timeout, TimeUnit unit)
Implements io. Like |
| private void | |
| public synchronized HttpConnection | |
| pack-priv VertxHttp2Stream | |
| public Future | updateSettings(Http2Settings
the new settings settings)Implements io. Send to the remote endpoint an update of the server settings. |
| public HttpConnection | updateSettings(Http2Settings
the new settings settings, @Nullable Handler<AsyncResult<Void>> the handler notified when the settings have been acknowledged by the remote endpoint completionHandler)Implements io. Send to the remote endpoint an update of this endpoint settings
The |
| protected void | |
| pack-priv VertxInternal |