Package org.eclipse.jetty.quic.common
Class QuicSessionContainer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.quic.common.QuicSessionContainer
- All Implemented Interfaces:
EventListener,QuicSession.Listener,Dumpable,Graceful,LifeCycle
public class QuicSessionContainer
extends AbstractLifeCycle
implements QuicSession.Listener, Graceful, Dumpable
A container that tracks QuicSession instances.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown, Graceful.ThrowingRunnableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
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.booleanvoidonClosed(QuicSession session) Callback method invoked when aQuicSessionis closed.voidonOpened(QuicSession session) Callback method invoked when aQuicSessionis opened.shutdown()Shutdown the component.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, toString
-
Constructor Details
-
QuicSessionContainer
public QuicSessionContainer()
-
-
Method Details
-
onOpened
Description copied from interface:QuicSession.ListenerCallback method invoked when a
QuicSessionis opened.- Specified by:
onOpenedin interfaceQuicSession.Listener- Parameters:
session- the session
-
onClosed
Description copied from interface:QuicSession.ListenerCallback method invoked when a
QuicSessionis closed.- Specified by:
onClosedin interfaceQuicSession.Listener- Parameters:
session- the 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.
-
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
-