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.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown, Graceful.ThrowingRunnable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondump()
void
dump
(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.int
getSize()
boolean
void
onClosed
(Connection connection) void
onOpened
(Connection connection) shutdown()
Shutdown the component.toString()
-
Constructor Details
-
HTTP2SessionContainer
public HTTP2SessionContainer()
-
-
Method Details
-
onOpened
- Specified by:
onOpened
in interfaceConnection.Listener
-
onClosed
- Specified by:
onClosed
in interfaceConnection.Listener
-
getSessions
-
getSize
-
shutdown
Description copied from interface:Graceful
Shutdown the component. When this method returns, the component should not accept any new load. -
isShutdown
public boolean isShutdown()- Specified by:
isShutdown
in interfaceGraceful
- Returns:
- True if
Graceful.shutdown()
has been called.
-
dump
-
dump
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.- Specified by:
dump
in 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
-