Class QuicSessionContainer

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.quic.common.QuicSessionContainer
All Implemented Interfaces:
EventListener, QuicSession.Listener, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Graceful, org.eclipse.jetty.util.component.LifeCycle

public class QuicSessionContainer extends org.eclipse.jetty.util.component.AbstractLifeCycle implements QuicSession.Listener, org.eclipse.jetty.util.component.Graceful, org.eclipse.jetty.util.component.Dumpable

A container that tracks QuicSession instances.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

    org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful

    org.eclipse.jetty.util.component.Graceful.Shutdown, org.eclipse.jetty.util.component.Graceful.ThrowingRunnable

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, STARTED, STARTING, STOPPED, STOPPING

    Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

    KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    dump(Appendable out, String indent)
     
    boolean
     
    void
    Callback method invoked when a QuicSession is closed.
    void
    Callback method invoked when a QuicSession is opened.
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

    dumpSelf
  • 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()
      Specified by:
      shutdown in interface org.eclipse.jetty.util.component.Graceful
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface org.eclipse.jetty.util.component.Graceful
    • dump

      public String dump()
      Specified by:
      dump in interface org.eclipse.jetty.util.component.Dumpable
    • dump

      public void dump(Appendable out, String indent) throws IOException
      Specified by:
      dump in interface org.eclipse.jetty.util.component.Dumpable
      Throws:
      IOException