public abstract static class Http2Connection.Listener extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Http2Connection.Listener |
REFUSE_INCOMING_STREAMS |
| 构造器和说明 |
|---|
Listener() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
IOExceptionpublic 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 © 2022. All rights reserved.