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.

  • Constructor Details

    • QuicSessionContainer

      public QuicSessionContainer()
  • Method Details

    • onOpened

      public void onOpened(QuicSession session)
      Description copied from interface: QuicSession.Listener

      Callback method invoked when a QuicSession is opened.

      Specified by:
      onOpened in interface QuicSession.Listener
      Parameters:
      session - the session
    • onClosed

      public void onClosed(QuicSession session)
      Description copied from interface: QuicSession.Listener

      Callback method invoked when a QuicSession is closed.

      Specified by:
      onClosed in interface QuicSession.Listener
      Parameters:
      session - the session
    • shutdown

      public CompletableFuture<Void> shutdown()
      Description copied from interface: Graceful
      Shutdown the component. When this method returns, the component should not accept any new load.
      Specified by:
      shutdown in interface Graceful
      Returns:
      A future that is completed once all load on the component is completed
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface Graceful
      Returns:
      True if Graceful.shutdown() has been called.
    • dump

      public String dump()
      Specified by:
      dump in interface Dumpable
    • dump

      public void dump(Appendable out, String indent) throws IOException
      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 interface Dumpable
      Parameters:
      out - The appendable to dump to
      indent - The indent to apply after any new lines.
      Throws:
      IOException - if unable to write to Appendable