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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback invoked when the operation fails.protected Connection
newConnection
(Destination destination, Session session, HTTP2Connection connection) void
onClose
(Session session, GoAwayFrame frame, Callback callback) Callback method invoked when a GOAWAY frame caused the session to be closed.void
onClose
(HttpConnectionOverHTTP2 connection, GoAwayFrame frame) void
Callback method invoked when a failure has been detected for this session.void
onGoAway
(Session session, GoAwayFrame frame) Callback method invoked when a GOAWAY frame has been received.boolean
onIdleTimeout
(Session session) Callback method invoked when the idle timeout expired.void
onSettings
(Session session, SettingsFrame frame) Callback method invoked when a SETTINGS frame has been received.void
Callback invoked when the operation completes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.Promise
completeWith
Methods inherited from interface org.eclipse.jetty.http2.api.Session.Listener
onNewStream, onPing, onPreface, onReset
-
Constructor Details
-
HTTPSessionListenerPromise
-
-
Method Details
-
succeeded
Description copied from interface:Promise
Callback invoked when the operation completes.
-
failed
Description copied from interface:Promise
Callback invoked when the operation fails.
-
onSettings
Description copied from interface:Session.Listener
Callback method invoked when a SETTINGS frame has been received.
- Specified by:
onSettings
in interfaceSession.Listener
- Parameters:
session
- the sessionframe
- the SETTINGS frame received
-
newConnection
protected Connection newConnection(Destination destination, Session session, HTTP2Connection connection) -
onGoAway
Description copied from interface:Session.Listener
Callback method invoked when a GOAWAY frame has been received.
- Specified by:
onGoAway
in interfaceSession.Listener
- Parameters:
session
- the sessionframe
- the GOAWAY frame received
-
onClose
Description copied from interface:Session.Listener
Callback method invoked when a GOAWAY frame caused the session to be closed.
- Specified by:
onClose
in interfaceSession.Listener
- Parameters:
session
- the sessionframe
- the GOAWAY frame that caused the session to be closedcallback
- the callback to notify of the GOAWAY processing
-
onClose
-
onIdleTimeout
Description copied from interface:Session.Listener
Callback method invoked when the idle timeout expired.
- Specified by:
onIdleTimeout
in interfaceSession.Listener
- Parameters:
session
- the session- Returns:
- whether the session should be closed
-
onFailure
Description copied from interface:Session.Listener
Callback method invoked when a failure has been detected for this session.
- Specified by:
onFailure
in interfaceSession.Listener
- Parameters:
session
- the sessionfailure
- the failurecallback
- the callback to notify of failure processing
-