Class AbstractSession
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.quic.common.AbstractSession
- All Implemented Interfaces:
Session
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
- Direct Known Subclasses:
QuicheSession
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendable
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractSession
(Executor executor, QuicConfiguration configuration, Session.Listener listener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(ConnectionCloseFrame frame, Promise.Invocable<Session> promise) Closes this session with the givenCONNECTION_CLOSE
frame.protected void
protected void
emitOpen()
abstract X509Certificate[]
protected void
notifyClose
(ConnectionCloseFrame frame) protected void
protected void
protected boolean
notifyIdleTimeout
(TimeoutException failure) protected void
notifyLocalClose
(ConnectionCloseFrame frame, Promise.Invocable<Session> promise) protected void
notifyMaxData
(MaxDataFrame frame) protected void
notifyMaxStreams
(MaxStreamsFrame frame) protected Stream.Listener
protected void
protected void
protected TransportParameters
protected void
protected void
notifyTransportParameters
(TransportParameters parameters) abstract void
shutdown()
toString()
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
Methods inherited from interface org.eclipse.jetty.quic.api.Session
disconnect, getId, getIdleTimeout, getLocalBidirectionalMaxStreams, getLocalSocketAddress, getRemoteSocketAddress, getStream, getStreams, maxData, maxStreams, newStream, newStreamId, ping
-
Constructor Details
-
AbstractSession
protected AbstractSession(Executor executor, QuicConfiguration configuration, Session.Listener listener)
-
-
Method Details
-
getExecutor
-
getQuicConfiguration
-
getListener
-
getPeerCertificates
-
emitOpen
protected void emitOpen() -
emitDisconnect
protected void emitDisconnect() -
offerTask
-
shutdown
-
close
Description copied from interface:Session
Closes this session with the given
CONNECTION_CLOSE
frame.Applications should use this method in conjunction with
ConnectionCloseFrame(long, String)
.Differently from
Session.disconnect(ConnectionCloseFrame, Throwable, Promise.Invocable)
, this method performs close actions inwards, towards the application, that may perform additional actions such as writing to the network, for example close frames for a protocol on top of QUIC.After finishing the inward actions,
Session.disconnect(ConnectionCloseFrame, Throwable, Promise.Invocable)
should be called to perform close actions outwards and eventually send the QUIC close frame and finally disconnect at the network level, if necessary. -
notifyOpen
protected void notifyOpen() -
notifyNewStream
-
notifyPrepare
-
notifyTransportParameters
-
notifyMaxStreams
-
notifyDataBlocked
-
notifyMaxData
-
notifyPing
protected void notifyPing() -
notifyStreamsBlocked
-
notifyIdleTimeout
-
notifyLocalClose
-
notifyClose
-
notifyDisconnect
protected void notifyDisconnect() -
toString
- Overrides:
toString
in classAbstractLifeCycle
-