Class SessionClientListener

java.lang.Object
org.eclipse.jetty.http3.client.http.internal.SessionClientListener
All Implemented Interfaces:
Session.Client.Listener, Session.Listener

public class SessionClientListener extends Object implements Session.Client.Listener
  • Constructor Details

    • SessionClientListener

      public SessionClientListener(Map<String,Object> context)
  • Method Details

    • onConnect

      public void onConnect(Session.Client session, Throwable failure)
    • onSettings

      public void onSettings(Session session, SettingsFrame frame)
      Description copied from interface: Session.Listener

      Callback method invoked when a SETTINGS frame has been received.

      Specified by:
      onSettings in interface Session.Listener
      Parameters:
      session - the session
      frame - the SETTINGS frame received
    • onIdleTimeout

      public boolean onIdleTimeout(Session session)
      Description copied from interface: Session.Listener

      Callback method invoked when the idle timeout has expired.

      Specified by:
      onIdleTimeout in interface Session.Listener
      Parameters:
      session - the session
      Returns:
      true to confirm the idle timeout, false to ignore the idle timeout
    • onDisconnect

      public void onDisconnect(Session session, long error, String reason)
      Description copied from interface: Session.Listener

      Callback method invoked when the underlying transport has been disconnected.

      Specified by:
      onDisconnect in interface Session.Listener
      Parameters:
      session - the session
      error - the disconnect error
      reason - the disconnect reason
    • onFailure

      public void onFailure(Session session, long error, String reason, Throwable failure)
      Description copied from interface: Session.Listener

      Callback method invoked when a failure has been detected for this session.

      Specified by:
      onFailure in interface Session.Listener
      Parameters:
      session - the session
      error - the failure error
      reason - the failure reason
      failure - the failure
    • newHttpConnection

      protected HttpConnectionOverHTTP3 newHttpConnection(HttpDestination destination, HTTP3SessionClient session)