Package org.eclipse.jetty.io
Interface Connection.Listener
-
- All Known Implementing Classes:
AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
,Connection.Listener.Adapter
,ConnectionLimit
,ConnectionStatistics
,ConnectorStatistics
,DebugHandler
,IncludeExcludeConnectionStatistics
,JsrSession
,ServerConnectionStatistics
,SocketCustomizationListener
,WebSocketSession
- Enclosing interface:
- Connection
public static interface Connection.Listener
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 viaContainer.addBean(Object)
to the Connector or ConnectionFactory are added as listeners to all new connections
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Connection.Listener.Adapter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onClosed(Connection connection)
void
onOpened(Connection connection)
-
-
-
Method Detail
-
onOpened
void onOpened(Connection connection)
-
onClosed
void onClosed(Connection connection)
-
-