Class AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer

java.lang.Object
org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
All Implemented Interfaces:
org.eclipse.jetty.io.Connection.Listener, org.eclipse.jetty.util.component.Dumpable
Enclosing class:
AbstractHTTP2ServerConnectionFactory

@ManagedObject("The container of HTTP/2 sessions") public static class AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer extends Object implements org.eclipse.jetty.io.Connection.Listener, org.eclipse.jetty.util.component.Dumpable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection.Listener

    org.eclipse.jetty.io.Connection.Listener.Adapter

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

    org.eclipse.jetty.util.component.Dumpable.DumpableContainer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Set<Session>
     

    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)
     
     
    int
     
    void
    onClosed(org.eclipse.jetty.io.Connection connection)
     
    void
    onOpened(org.eclipse.jetty.io.Connection connection)
     
     

    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
  • Field Details

  • Constructor Details

    • HTTP2SessionContainer

      public HTTP2SessionContainer()
  • Method Details

    • onOpened

      public void onOpened(org.eclipse.jetty.io.Connection connection)
      Specified by:
      onOpened in interface org.eclipse.jetty.io.Connection.Listener
    • onClosed

      public void onClosed(org.eclipse.jetty.io.Connection connection)
      Specified by:
      onClosed in interface org.eclipse.jetty.io.Connection.Listener
    • getSessions

      public Set<Session> getSessions()
    • getSize

      @ManagedAttribute(value="The number of HTTP/2 sessions", readonly=true) public int getSize()
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object