public abstract static class FramedConnection.Listener extends Object
| Modifier and Type | Field and Description |
|---|---|
static FramedConnection.Listener |
REFUSE_INCOMING_STREAMS |
| Constructor and Description |
|---|
Listener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onSettings(FramedConnection connection)
Notification that the connection's peer's settings may have changed.
|
abstract void |
onStream(FramedStream stream)
Handle a new stream from this connection's peer.
|
public static final FramedConnection.Listener REFUSE_INCOMING_STREAMS
public abstract void onStream(FramedStream stream) throws IOException
IOExceptionpublic void onSettings(FramedConnection 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 © 2017. All Rights Reserved.