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)
通知连接的对等点的设置可能已更改。实现应该采取适当的操作来处理更新的设置
处理对该方法的并发调用是实现的职责。发送多个设置帧的远程对等点将触发对该
方法的多个调用,而这些调用不一定是序列化的
|
abstract void |
onStream(Http2Stream stream)
处理来自此连接的对等点的新流。实现应该通过响应流或
closing it。这个响应不需要是同步的
|
public static final Http2Connection.Listener REFUSE_INCOMING_STREAMS
public abstract void onStream(Http2Stream stream) throws IOException
stream - 响应流IOException - 异常public void onSettings(Http2Connection connection)
connection - 连接信息Copyright © 2019. All rights reserved.