Class 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 java.lang.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 java.util.Set<Session> sessions  
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String dump()  
      void dump​(java.lang.Appendable out, java.lang.String indent)  
      java.util.Set<Session> getSessions()  
      int getSize()  
      void onClosed​(org.eclipse.jetty.io.Connection connection)  
      void onOpened​(org.eclipse.jetty.io.Connection connection)  
      java.lang.String 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
    • Field Detail

      • sessions

        private final java.util.Set<Session> sessions
    • Constructor Detail

      • HTTP2SessionContainer

        public HTTP2SessionContainer()
    • Method Detail

      • 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 java.util.Set<Session> getSessions()
      • getSize

        @ManagedAttribute(value="The number of HTTP/2 sessions",
                          readonly=true)
        public int getSize()
      • dump

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object