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.String
dump()
void
dump(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()
int
getSize()
void
onClosed(Connection connection)
void
onOpened(Connection connection)
java.lang.String
toString()
-
-
-
Method Detail
-
onOpened
public void onOpened(Connection connection)
- Specified by:
onOpened
in interfaceConnection.Listener
-
onClosed
public void onClosed(Connection connection)
- Specified by:
onClosed
in 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.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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-