Package org.eclipse.jetty.http2.server
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 java.lang.Object implements org.eclipse.jetty.io.Connection.Listener, org.eclipse.jetty.util.component.Dumpable
-
-
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)
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()
-
-
-
Field Detail
-
sessions
private final java.util.Set<Session> sessions
-
-
Method Detail
-
onOpened
public void onOpened(org.eclipse.jetty.io.Connection connection)
- Specified by:
onOpened
in interfaceorg.eclipse.jetty.io.Connection.Listener
-
onClosed
public void onClosed(org.eclipse.jetty.io.Connection connection)
- Specified by:
onClosed
in interfaceorg.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 interfaceorg.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 interfaceorg.eclipse.jetty.util.component.Dumpable
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-