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 HttpDestinationOverHTTP2
private boolean
failConnectionPromise
(Throwable failure) void
private HttpConnectionOverHTTP2
void
onClose
(Session session, GoAwayFrame frame) void
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.private void
onServerPreface
(Session session) void
onSettings
(Session session, SettingsFrame frame) Callback method invoked when a SETTINGS frame has been received.void
Methods inherited from class org.eclipse.jetty.http2.api.Session.Listener.Adapter
onNewStream, onPing, onPreface, onReset
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.http2.api.Session.Listener
onClose, onFailure
-
Field Details
-
connection
-
context
-
-
Constructor Details
-
SessionListenerPromise
-
-
Method Details
-
succeeded
- Specified by:
succeeded
in interfaceorg.eclipse.jetty.util.Promise<Session>
-
failed
- Specified by:
failed
in 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.Listener
Callback method invoked when a SETTINGS frame has been received.
- Specified by:
onSettings
in interfaceSession.Listener
- Overrides:
onSettings
in classSession.Listener.Adapter
- Parameters:
session
- the sessionframe
- the SETTINGS frame received
-
onServerPreface
-
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
- Specified by:
onClose
in interfaceSession.Listener
- Overrides:
onClose
in classSession.Listener.Adapter
-
onIdleTimeout
Description copied from interface:Session.Listener
Callback method invoked when the idle timeout expired.
- Specified by:
onIdleTimeout
in interfaceSession.Listener
- Overrides:
onIdleTimeout
in classSession.Listener.Adapter
- Parameters:
session
- the session- Returns:
- whether the session should be closed
-
onFailure
- Specified by:
onFailure
in interfaceSession.Listener
- Overrides:
onFailure
in classSession.Listener.Adapter
-
failConnectionPromise
-
getConnection
-