Http2Connection.
| Modifier and Type | Class and Description |
|---|---|
| private class | DefaultHttp2Connection.ActiveStreams
Manages the list of currently active streams. |
| private class | DefaultHttp2Connection.ConnectionStream
Stream class representing the connection, itself. |
| private class | DefaultHttp2Connection.DefaultEndpoint<F extends Http2FlowController>
Simple endpoint implementation. |
| pack-priv class | DefaultHttp2Connection.DefaultPropertyKey
Implementation of |
| private class | DefaultHttp2Connection.DefaultStream
Simple stream implementation. |
| pack-priv static interface | DefaultHttp2Connection.Event
Allows events which would modify the collection of active streams to be queued while iterating via |
| private class | DefaultHttp2Connection.PropertyKeyRegistry
A registry of all stream property keys known by this connection. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DefaultHttp2Connection. | |
| pack-priv Promise | |
| pack-priv final DefaultHttp2Connection. | |
| pack-priv final List | |
| pack-priv final DefaultHttp2Connection. | |
| private static final InternalLogger | |
| pack-priv final DefaultHttp2Connection. | |
| pack-priv final DefaultHttp2Connection. | |
| pack-priv final IntObjectMap |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttp2Connection(boolean
whether or not this end-point is the server-side of the HTTP/2 connection. server)Creates a new connection with the given settings. |
| public | DefaultHttp2Connection(boolean
whether or not this end-point is the server-side of the HTTP/2 connection. server, int The maximum amount of streams which can exist in the reserved state for each endpoint. maxReservedStreams)Creates a new connection with the given settings. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Http2Stream. | |
| public void | addListener(Http2Connection.
Implements io. |
| public Future | close(final Promise<Void>
Will be completed when all streams have been removed, and listeners have been notified. promise)Implements io. |
| private void | closeStreamsGreaterThanLastKnownStreamId(final int lastKnownStream, final DefaultHttp2Connection.
|
| public Http2Stream | connectionStream()
Implements io. |
| public Http2Stream | forEachActiveStream(Http2StreamVisitor
The visitor which will visit each active stream. visitor)Implements io. |
| public boolean | goAwayReceived()
Implements io. GOAWAY was received from the remote endpoint.
|
| public void | goAwayReceived(final int
The Last-Stream-ID in the
GOAWAY frame. lastKnownStream, long the Error Code in the
GOAWAY frame. errorCode, ByteBuf The Additional Debug Data in the
GOAWAY frame. Note that reference count ownership
belongs to the caller (ownership is not transferred to this method). debugData)Implements io. GOAWAY was received from the remote endpoint and sets the last known stream.
|
| public boolean | goAwaySent()
Implements io. GOAWAY was sent to the remote endpoint.
|
| public boolean | goAwaySent(final int
The Last-Stream-ID in the
GOAWAY frame. lastKnownStream, long errorCode, ByteBuf debugData)Implements io. Http2Connection as a result of a GOAWAY to send to the remote
endpoint.
|
| pack-priv final boolean | isClosed()
Determine if |
| public boolean | isServer()
Implements io. |
| private boolean | |
| public Http2Connection. | local()
Implements io. Endpoint.
|
| public Http2Connection. | newKey()
Implements io. Http2Connection.
|
| pack-priv void | |
| pack-priv void | |
| public int | numActiveStreams()
Implements io. OPEN or HALF CLOSED).
|
| public Http2Connection. | remote()
Implements io. Endpoint.
|
| public void | removeListener(Http2Connection.
Implements io. |
| pack-priv void | removeStream(DefaultHttp2Connection.
the stream to remove. stream,an iterator that may be pointing to the stream during iteration and itr)Iterator#remove() will be
used if non-null.Remove a stream from the |
| public Http2Stream | stream(int streamId)
Implements io. |
| public boolean | streamMayHaveExisted(int streamId)
Implements io. |
| pack-priv final DefaultHttp2Connection. | verifyKey(Http2Connection.
Verifies that the key is valid and returns it as the internal |