Class HTTPSessionListenerPromise

java.lang.Object
org.eclipse.jetty.http2.client.transport.internal.HTTPSessionListenerPromise
All Implemented Interfaces:
Session.Listener, Promise<Session>

public class HTTPSessionListenerPromise extends Object implements Session.Listener, Promise<Session>
  • Constructor Details

    • HTTPSessionListenerPromise

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

    • succeeded

      public void succeeded(Session session)
      Description copied from interface: Promise

      Callback invoked when the operation completes.

      Specified by:
      succeeded in interface Promise<Session>
      Parameters:
      session - the context
      See Also:
    • failed

      public void failed(Throwable failure)
      Description copied from interface: Promise

      Callback invoked when the operation fails.

      Specified by:
      failed in interface Promise<Session>
      Parameters:
      failure - the reason for the operation 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
    • newConnection

      protected Connection newConnection(Destination destination, Session session, HTTP2Connection connection)
    • onGoAway

      public void onGoAway(Session session, GoAwayFrame frame)
      Description copied from interface: Session.Listener

      Callback method invoked when a GOAWAY frame has been received.

      Specified by:
      onGoAway in interface Session.Listener
      Parameters:
      session - the session
      frame - the GOAWAY frame received
    • onClose

      public void onClose(Session session, GoAwayFrame frame, Callback callback)
      Description copied from interface: Session.Listener

      Callback method invoked when a GOAWAY frame caused the session to be closed.

      Specified by:
      onClose in interface Session.Listener
      Parameters:
      session - the session
      frame - the GOAWAY frame that caused the session to be closed
      callback - the callback to notify of the GOAWAY processing
    • onClose

      public void onClose(HttpConnectionOverHTTP2 connection, GoAwayFrame frame)
    • onIdleTimeout

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

      Callback method invoked when the idle timeout expired.

      Specified by:
      onIdleTimeout in interface Session.Listener
      Parameters:
      session - the session
      Returns:
      whether the session should be closed
    • onFailure

      public void onFailure(Session session, Throwable failure, Callback callback)
      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
      failure - the failure
      callback - the callback to notify of failure processing