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.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
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
-
Field Summary
-
Constructor Summary
-
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
void
onClosed
(QuicSession session) Callback method invoked when aQuicSession
is closed.void
onOpened
(QuicSession session) Callback method invoked when aQuicSession
is 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.Listener
Callback method invoked when a
QuicSession
is opened.- Specified by:
onOpened
in interfaceQuicSession.Listener
- Parameters:
session
- the session
-
onClosed
Description copied from interface:QuicSession.Listener
Callback method invoked when a
QuicSession
is closed.- Specified by:
onClosed
in interfaceQuicSession.Listener
- Parameters:
session
- the 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.
-
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
-