Package org.eclipse.jetty.http3.api
Interface Session.Listener
- All Known Subinterfaces:
Session.Client.Listener
,Session.Server.Listener
- Enclosing interface:
- Session
public static interface Session.Listener
A Session.Listener
is the passive counterpart of a Session
and
receives events happening on an HTTP/3 connection.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onDisconnect
(Session session, long error, String reason) Callback method invoked when the underlying transport has been disconnected.default void
Callback method invoked when a failure has been detected for this session.default void
onGoAway
(Session session, GoAwayFrame frame) Callback method invoked when a GOAWAY frame has been received.default boolean
onIdleTimeout
(Session session) Callback method invoked when the idle timeout has expired.Callback method invoked just before the initial SETTINGS frame is sent to the remote peer, to gather the configuration settings that the local peer wants to send to the remote peer.default void
onSettings
(Session session, SettingsFrame frame) Callback method invoked when a SETTINGS frame has been received.
-
Method Details
-
onPreface
Callback method invoked just before the initial SETTINGS frame is sent to the remote peer, to gather the configuration settings that the local peer wants to send to the remote peer.
- Parameters:
session
- the session- Returns:
- a (possibly empty or null) map containing configuration settings to send to the remote peer.
-
onSettings
Callback method invoked when a SETTINGS frame has been received.
- Parameters:
session
- the sessionframe
- the SETTINGS frame received
-
onGoAway
Callback method invoked when a GOAWAY frame has been received.
- Parameters:
session
- the sessionframe
- the GOAWAY frame received
-
onIdleTimeout
Callback method invoked when the idle timeout has expired.
- Parameters:
session
- the session- Returns:
- true to confirm the idle timeout, false to ignore the idle timeout
-
onDisconnect
Callback method invoked when the underlying transport has been disconnected.
- Parameters:
session
- the sessionerror
- the disconnect errorreason
- the disconnect reason
-
onFailure
Callback method invoked when a failure has been detected for this session.
- Parameters:
session
- the sessionerror
- the failure errorreason
- the failure reasonfailure
- the failure
-