Package org.eclipse.jetty.http2.server
Class AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
java.lang.Object
org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
- All Implemented Interfaces:
EventListener,Connection.Listener,Dumpable,Graceful
- Enclosing class:
- AbstractHTTP2ServerConnectionFactory
@ManagedObject("The container of HTTP/2 sessions")
public static class AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
extends Object
implements Connection.Listener, Graceful, Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection.Listener
Connection.Listener.AdapterNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown, Graceful.ThrowingRunnable -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondump()voiddump(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.intgetSize()booleanvoidonClosed(Connection connection) voidonOpened(Connection connection) shutdown()Shutdown the component.toString()
-
Constructor Details
-
HTTP2SessionContainer
public HTTP2SessionContainer()
-
-
Method Details
-
onOpened
- Specified by:
onOpenedin interfaceConnection.Listener
-
onClosed
- Specified by:
onClosedin interfaceConnection.Listener
-
getSessions
-
getSize
-
shutdown
Description copied from interface:GracefulShutdown the component. When this method returns, the component should not accept any new load. -
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceGraceful- Returns:
- True if
Graceful.shutdown()has been called.
-
dump
-
dump
Description 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.- Specified by:
dumpin interfaceDumpable- Parameters:
out- The appendable to dump toindent- The indent to apply after any new lines.- Throws:
IOException- if unable to write to Appendable
-
toString
-