Class SessionContainer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.quic.common.SessionContainer
- All Implemented Interfaces:
EventListener
,Session.Listener
,Dumpable
,Graceful
,LifeCycle
public class SessionContainer
extends AbstractLifeCycle
implements EventListener, Session.Listener, Graceful, Dumpable
A container that tracks Session
instances.
-
Nested Class Summary
Nested 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.Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown, Graceful.ThrowingRunnable
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.quic.api.Session.Listener
Session.Listener.Factory
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondump()
void
dump
(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.boolean
isEmpty()
boolean
void
onDisconnect
(Session session) Callback method invoked when the session has been disconnected.void
Callback method invoked when a new session is opened.shutdown()
Shutdown the component.toString()
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, 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.quic.api.Session.Listener
onClose, onDataBlocked, onIdleTimeout, onMaxData, onMaxStreams, onNewStream, onPing, onPrepare, onStreamsBlocked, onTransportParameters
-
Constructor Details
-
SessionContainer
public SessionContainer()
-
-
Method Details
-
onOpen
Description copied from interface:Session.Listener
Callback method invoked when a new session is opened.
- Specified by:
onOpen
in interfaceSession.Listener
- Parameters:
session
- the QUIC session
-
onDisconnect
Description copied from interface:Session.Listener
Callback method invoked when the session has been disconnected.
- Specified by:
onDisconnect
in interfaceSession.Listener
- Parameters:
session
- the QUIC session
-
shutdown
Description copied from interface:Graceful
Shutdown the component. When this method returns, the component should not accept any new load. -
isShutdown
public boolean isShutdown()- Specified by:
isShutdown
in interfaceGraceful
- Returns:
- True if
Graceful.shutdown()
has been called.
-
isEmpty
public boolean isEmpty() -
dump
-
dump
Description copied from interface:Dumpable
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dump
in interfaceDumpable
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
IOException
- if unable to write to Appendable
-
toString
- Overrides:
toString
in classAbstractLifeCycle
-