Package org.eclipse.jetty.io
Interface Connection.Listener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
,Connection.Listener.Adapter
,ConnectionLimit
,ConnectionStatistics
,DebugHandler
,IncludeExcludeConnectionStatistics
,ServerConnectionStatistics
,SocketCustomizationListener
- Enclosing interface:
- Connection
A Listener for connection events.
Listeners can be added to a Connection
to get open and close events.
The AbstractConnectionFactory implements a pattern where objects implement
this interface that have been added via Container.addBean(Object)
to
the Connector or ConnectionFactory are added as listeners to all new connections
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onClosed
(Connection connection) void
onOpened
(Connection connection)
-
Method Details
-
onOpened
-
onClosed
-