java.lang.Object
org.miaixz.bus.http.metric.http.Http2Connection.Listener
- Direct Known Subclasses:
RealConnection
- Enclosing class:
Http2Connection
Listener of streams and settings initiated by the peer.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonSettings(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.
-
Field Details
-
REFUSE_INCOMING_STREAMS
-
-
Constructor Details
-
Listener
public Listener()
-
-
Method Details
-
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.- Parameters:
stream- The new stream.- Throws:
IOException- if an I/O error occurs.
-
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.- Parameters:
connection- The connection with the updated settings.
-