Top Description Fields Constructors Methods
org.eclipse.jetty.quic.common

public Class QuicSessionContainer

extends AbstractLifeCycle
implements Listener, Graceful, Dumpable
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Graceful, org.eclipse.jetty.quic.common.QuicSession.Listener, java.util.EventListener
Imports
java.io.IOException, java.util.Set, java.util.concurrent.CompletableFuture, .ConcurrentHashMap, java.util.concurrent.atomic.AtomicReference, org.eclipse.jetty.util.component.AbstractLifeCycle, .Dumpable, .DumpableCollection, .Graceful

A container that tracks QuicSession instances.

Field Summary

Modifier and TypeField and Description
private final Set<QuicSession>
private final AtomicReference<CompletableFuture<Void>>
Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
FAILEDSTARTEDSTARTINGSTOPPEDSTOPPING

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public void
dump(Appendable out, String indent)

Implements org.eclipse.jetty.util.component.Dumpable.dump.

Dump this object (and children) into an Appendable using the provided indent after any new lines.

public boolean
public void
onClosed(QuicSession session)

Overrides default org.eclipse.jetty.quic.common.QuicSession.Listener.onClosed.

Callback method invoked when a QuicSession is closed.

public void
onOpened(QuicSession session)

Overrides default org.eclipse.jetty.quic.common.QuicSession.Listener.onOpened.

Callback method invoked when a QuicSession is opened.

public CompletableFuture<Void>
shutdown()

Implements org.eclipse.jetty.util.component.Graceful.shutdown.

Shutdown the component.

Inherited from org.eclipse.jetty.util.component.AbstractLifeCycle:
addEventListenerdoStartdoStopgetEventListenersgetStategetStateisFailedisRunningisStartedisStartingisStoppedisStoppingremoveEventListenersetEventListenersstartstoptoString

Field Detail

sessionsback to summary
private final Set<QuicSession> sessions
shutdownback to summary
private final AtomicReference<CompletableFuture<Void>> shutdown

Constructor Detail

QuicSessionContainerback to summary
public QuicSessionContainer()

Method Detail

dumpback to summary
public String dump()

Overrides default org.eclipse.jetty.util.component.Dumpable.dump.

Annotations
@Override
dumpback to summary
public void dump(Appendable out, String indent) throws IOException

Implements org.eclipse.jetty.util.component.Dumpable.dump.

Doc from org.eclipse.jetty.util.component.Dumpable.dump.

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.

Annotations
@Override
Exceptions
IOException:
if unable to write to Appendable
isShutdownback to summary
public boolean isShutdown()

Implements org.eclipse.jetty.util.component.Graceful.isShutdown.

Annotations
@Override
onClosedback to summary
public void onClosed(QuicSession session)

Overrides default org.eclipse.jetty.quic.common.QuicSession.Listener.onClosed.

Doc from org.eclipse.jetty.quic.common.QuicSession.Listener.onClosed.

Callback method invoked when a QuicSession is closed.

Annotations
@Override
onOpenedback to summary
public void onOpened(QuicSession session)

Overrides default org.eclipse.jetty.quic.common.QuicSession.Listener.onOpened.

Doc from org.eclipse.jetty.quic.common.QuicSession.Listener.onOpened.

Callback method invoked when a QuicSession is opened.

Annotations
@Override
shutdownback to summary
public CompletableFuture<Void> shutdown()

Implements org.eclipse.jetty.util.component.Graceful.shutdown.

Doc from org.eclipse.jetty.util.component.Graceful.shutdown.

Shutdown the component. When this method returns, the component should not accept any new load.

Annotations
@Override