类 Http2Connection.Listener
java.lang.Object
com.lark.oapi.okhttp.internal.http2.Http2Connection.Listener
- 直接已知子类:
RealConnection
- 封闭类:
Http2Connection
Listener of streams and settings initiated by the peer.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidonSettings(Http2Connection connection) Notification that the connection's peer's settings may have changed.abstract voidonStream(Http2Stream stream) Handle a new stream from this connection's peer.
-
字段详细资料
-
REFUSE_INCOMING_STREAMS
-
-
构造器详细资料
-
Listener
public Listener()
-
-
方法详细资料
-
onStream
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.- 抛出:
IOException
-
onSettings
Notification that the connection's peer's settings may have changed. Implementations should take appropriate action to handle the updated settings.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.
-