Http2Connection.Listener methods.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | onGoAwayReceived(int
the last known stream of the remote endpoint. lastStreamId, long the error code, if abnormal closure. errorCode, Buffer application-defined debug data. debugData)Implements io. GOAWAY was received from the remote endpoint.
|
| public void | onGoAwaySent(int
the last known stream of the remote endpoint. lastStreamId, long the error code, if abnormal closure. errorCode, Buffer application-defined debug data. debugData)Implements io. GOAWAY frame was sent for the connection.
|
| public void | onStreamActive(Http2Stream stream)
Implements io. OPEN or HALF CLOSED).
|
| public void | onStreamAdded(Http2Stream stream)
Implements io. |
| public void | onStreamClosed(Http2Stream stream)
Implements io. CLOSED in both directions and will no longer
be accessible via forEachActiveStream(Http2StreamVisitor).
|
| public void | onStreamHalfClosed(Http2Stream stream)
Implements io. OPEN to HALF CLOSED.
|
| public void | onStreamRemoved(Http2Stream stream)
Implements io. Http2Connection#stream(int).
|
| Http2ConnectionAdapter | back to summary |
|---|---|
| public Http2ConnectionAdapter() | |
| onGoAwayReceived | back to summary |
|---|---|
| public void onGoAwayReceived(int lastStreamId, long errorCode, Buffer debugData) Implements io. Doc from io. Called when a
If a | |
| onGoAwaySent | back to summary |
|---|---|
| public void onGoAwaySent(int lastStreamId, long errorCode, Buffer debugData) Implements io. Doc from io. Called when a
If a | |
| onStreamActive | back to summary |
|---|---|
| public void onStreamActive(Http2Stream stream) Implements io. Doc from io. Notifies the listener that the given stream was made active (i.e.
If a
| |
| onStreamAdded | back to summary |
|---|---|
| public void onStreamAdded(Http2Stream stream) Implements io. Doc from io. Notifies the listener that the given stream was added to the connection. This stream may
not yet be active (i.e.
If a
| |
| onStreamClosed | back to summary |
|---|---|
| public void onStreamClosed(Http2Stream stream) Implements io. Doc from io. Notifies the listener that the given stream is now
If a
| |
| onStreamHalfClosed | back to summary |
|---|---|
| public void onStreamHalfClosed(Http2Stream stream) Implements io. Doc from io. Notifies the listener that the given stream has transitioned from
If a
| |
| onStreamRemoved | back to summary |
|---|---|
| public void onStreamRemoved(Http2Stream stream) Implements io. Doc from io. Notifies the listener that the given stream has now been removed from the connection and
will no longer be returned via
If a
| |