Class HttpClientTransportOverHTTP2.SessionListenerPromise
java.lang.Object
org.eclipse.jetty.http2.api.Session.Listener.Adapter
org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.SessionListenerPromise
- All Implemented Interfaces:
Session.Listener,org.eclipse.jetty.util.Promise<Session>
- Enclosing class:
HttpClientTransportOverHTTP2
private class HttpClientTransportOverHTTP2.SessionListenerPromise
extends Session.Listener.Adapter
implements org.eclipse.jetty.util.Promise<Session>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
org.eclipse.jetty.util.Promise.Adapter<U>, org.eclipse.jetty.util.Promise.Completable<S>, org.eclipse.jetty.util.Promise.Wrapper<W>Nested classes/interfaces inherited from interface org.eclipse.jetty.http2.api.Session.Listener
Session.Listener.Adapter -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.eclipse.jetty.util.Promise<org.eclipse.jetty.client.api.Connection> private HttpDestinationOverHTTP2private booleanfailConnectionPromise(Throwable failure) voidprivate HttpConnectionOverHTTP2voidonClose(Session session, GoAwayFrame frame) voidvoidonGoAway(Session session, GoAwayFrame frame) Callback method invoked when a GOAWAY frame has been received.booleanonIdleTimeout(Session session) Callback method invoked when the idle timeout expired.private voidonServerPreface(Session session) voidonSettings(Session session, SettingsFrame frame) Callback method invoked when a SETTINGS frame has been received.voidMethods inherited from class org.eclipse.jetty.http2.api.Session.Listener.Adapter
onNewStream, onPing, onPreface, onResetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.http2.api.Session.Listener
onClose, onFailure
-
Field Details
-
connection
-
context
-
-
Constructor Details
-
SessionListenerPromise
-
-
Method Details
-
succeeded
- Specified by:
succeededin interfaceorg.eclipse.jetty.util.Promise<Session>
-
failed
- Specified by:
failedin interfaceorg.eclipse.jetty.util.Promise<Session>
-
destination
-
connectionPromise
private org.eclipse.jetty.util.Promise<org.eclipse.jetty.client.api.Connection> connectionPromise() -
onSettings
Description copied from interface:Session.ListenerCallback method invoked when a SETTINGS frame has been received.
- Specified by:
onSettingsin interfaceSession.Listener- Overrides:
onSettingsin classSession.Listener.Adapter- Parameters:
session- the sessionframe- the SETTINGS frame received
-
onServerPreface
-
onGoAway
Description copied from interface:Session.ListenerCallback method invoked when a GOAWAY frame has been received.
- Specified by:
onGoAwayin interfaceSession.Listener- Parameters:
session- the sessionframe- the GOAWAY frame received
-
onClose
- Specified by:
onClosein interfaceSession.Listener- Overrides:
onClosein classSession.Listener.Adapter
-
onIdleTimeout
Description copied from interface:Session.ListenerCallback method invoked when the idle timeout expired.
- Specified by:
onIdleTimeoutin interfaceSession.Listener- Overrides:
onIdleTimeoutin classSession.Listener.Adapter- Parameters:
session- the session- Returns:
- whether the session should be closed
-
onFailure
- Specified by:
onFailurein interfaceSession.Listener- Overrides:
onFailurein classSession.Listener.Adapter
-
failConnectionPromise
-
getConnection
-