-
public abstract class Http2Connection.ListenerListener of streams and settings initiated by the peer.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Http2Connection.ListenerREFUSE_INCOMING_STREAMS
-
Method Summary
Modifier and Type Method Description abstract voidonStream(Http2Stream stream)Handle a new stream from this connection's peer. voidonSettings(Http2Connection connection)Notification that the connection's peer's settings may have changed. -
-
Method Detail
-
onStream
abstract void onStream(Http2Stream stream)
Handle a new stream from this connection's peer. Implementations should respond by either replying to the stream or closing it. This response does not need to be synchronous.
-
onSettings
void onSettings(Http2Connection connection)
Notification that the connection's peer's settings may have changed. Implementations shouldtake appropriate action to handle the updated settings.
It is the implementation's responsibility to handle concurrent calls to this method. Aremote peer that sends multiple settings frames will trigger multiple calls to this method,and those calls are not necessarily serialized.
-
-
-
-