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 extends java.lang.Object>, org.eclipse.jetty.util.Promise.Completable<S extends java.lang.Object>, org.eclipse.jetty.util.Promise.Wrapper<W extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.http2.api.Session.Listener
Session.Listener.Adapter
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicMarkableReference<HttpConnectionOverHTTP2>connectionprivate java.util.Map<java.lang.String,java.lang.Object>context
-
Constructor Summary
Constructors Modifier Constructor Description privateSessionListenerPromise(java.util.Map<java.lang.String,java.lang.Object> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.eclipse.jetty.util.Promise<org.eclipse.jetty.client.api.Connection>connectionPromise()private HttpDestinationOverHTTP2destination()private booleanfailConnectionPromise(java.lang.Throwable failure)voidfailed(java.lang.Throwable failure)private HttpConnectionOverHTTP2getConnection()voidonClose(Session session, GoAwayFrame frame)voidonFailure(Session session, java.lang.Throwable failure)voidonGoAway(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.voidsucceeded(Session session)-
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 Detail
-
connection
private final java.util.concurrent.atomic.AtomicMarkableReference<HttpConnectionOverHTTP2> connection
-
context
private final java.util.Map<java.lang.String,java.lang.Object> context
-
-
Method Detail
-
succeeded
public void succeeded(Session session)
- Specified by:
succeededin interfaceorg.eclipse.jetty.util.Promise<Session>
-
failed
public void failed(java.lang.Throwable failure)
- Specified by:
failedin interfaceorg.eclipse.jetty.util.Promise<Session>
-
destination
private HttpDestinationOverHTTP2 destination()
-
connectionPromise
private org.eclipse.jetty.util.Promise<org.eclipse.jetty.client.api.Connection> connectionPromise()
-
onSettings
public void onSettings(Session session, SettingsFrame frame)
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
private void onServerPreface(Session session)
-
onGoAway
public void onGoAway(Session session, GoAwayFrame frame)
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
public void onClose(Session session, GoAwayFrame frame)
- Specified by:
onClosein interfaceSession.Listener- Overrides:
onClosein classSession.Listener.Adapter
-
onIdleTimeout
public boolean onIdleTimeout(Session session)
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
public void onFailure(Session session, java.lang.Throwable failure)
- Specified by:
onFailurein interfaceSession.Listener- Overrides:
onFailurein classSession.Listener.Adapter
-
failConnectionPromise
private boolean failConnectionPromise(java.lang.Throwable failure)
-
getConnection
private HttpConnectionOverHTTP2 getConnection()
-
-