Package org.eclipse.jetty.http2.server
Class AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
- java.lang.Object
-
- org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
-
- All Implemented Interfaces:
Connection.Listener,Dumpable
- Enclosing class:
- AbstractHTTP2ServerConnectionFactory
@ManagedObject("The container of HTTP/2 sessions") public static class AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer extends java.lang.Object implements Connection.Listener, Dumpable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection.Listener
Connection.Listener.Adapter
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
-
Constructor Summary
Constructors Constructor Description HTTP2SessionContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdump()voiddump(java.lang.Appendable out, java.lang.String indent)Dump this object (and children) into an Appendable using the provided indent after any new lines.java.util.Set<Session>getSessions()intgetSize()voidonClosed(Connection connection)voidonOpened(Connection connection)java.lang.StringtoString()
-
-
-
Method Detail
-
onOpened
public void onOpened(Connection connection)
- Specified by:
onOpenedin interfaceConnection.Listener
-
onClosed
public void onClosed(Connection connection)
- Specified by:
onClosedin interfaceConnection.Listener
-
getSessions
public java.util.Set<Session> getSessions()
-
getSize
@ManagedAttribute(value="The number of HTTP/2 sessions", readonly=true) public int getSize()
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOExceptionDescription copied from interface:DumpableDump 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-