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
@ManagedObject("The container of QUIC sessions")
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 AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendableNested classes/interfaces inherited from interface Graceful
Graceful.Shutdown, Graceful.ThrowingRunnableNested classes/interfaces inherited from interface LifeCycle
LifeCycle.ListenerNested classes/interfaces inherited from interface Session.Listener
Session.Listener.Factory - 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondump()voiddump(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.intgetSize()booleanisEmpty()booleanvoidonDisconnect(Session session) Callback method invoked when the session has been disconnected.voidCallback method invoked when a new session is opened.shutdown()Shutdown the component.toString()Methods inherited from class AbstractLifeCycle
addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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.ListenerCallback method invoked when a new session is opened.
- Specified by:
 onOpenin interfaceSession.Listener- Parameters:
 session- the QUIC session
 - 
onDisconnect
Description copied from interface:Session.ListenerCallback method invoked when the session has been disconnected.
- Specified by:
 onDisconnectin interfaceSession.Listener- Parameters:
 session- the QUIC session
 - 
shutdown
Description copied from interface:GracefulShutdown the component. When this method returns, the component should not accept any new load. - 
isShutdown
public boolean isShutdown()- Specified by:
 isShutdownin interfaceGraceful- Returns:
 - True if 
Graceful.shutdown()has been called. 
 - 
isEmpty
public boolean isEmpty() - 
getSize
 - 
dump
 - 
dump
Description copied from interface:DumpableDump 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:
 dumpin 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:
 toStringin classAbstractLifeCycle
 
 -