public abstract static class Http2Connection.Listener extends Object
Modifier and Type | Field and Description |
---|---|
static Http2Connection.Listener |
REFUSE_INCOMING_STREAMS |
Constructor and Description |
---|
Listener() |
Modifier and Type | Method and Description |
---|---|
void |
onSettings(Http2Connection connection)
Notification that the connection's peer's settings may have changed.
|
abstract void |
onStream(Http2Stream stream)
Handle a new stream from this connection's peer.
|
public static final Http2Connection.Listener REFUSE_INCOMING_STREAMS
public abstract void onStream(Http2Stream stream) throws IOException
IOException
public void onSettings(Http2Connection connection)
It is the implementation's responsibility to handle concurrent calls to this method. A remote peer that sends multiple settings frames will trigger multiple calls to this method, and those calls are not necessarily serialized.
Copyright © 2019. All rights reserved.