Package org.elasticsearch.transport
Interface TransportConnectionListener
- All Known Implementing Classes:
ConnectionManager.DelegatingNodeConnectionListener
,ProxyConnectionStrategy
,RemoteConnectionStrategy
,SniffConnectionStrategy
,TransportService
public interface TransportConnectionListener
A listener interface that allows to react on transport events. All methods may be
executed on network threads. Consumers must fork in the case of long running or blocking
operations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onConnectionClosed(Transport.Connection connection)
Called once a connection ws closed.default void
onConnectionOpened(Transport.Connection connection)
Called once a connection was openeddefault void
onNodeConnected(DiscoveryNode node, Transport.Connection connection)
Called once a node connection is opened and registered.default void
onNodeDisconnected(DiscoveryNode node, Transport.Connection connection)
Called once a node connection is closed and unregistered.
-
Method Details
-
onConnectionOpened
Called once a connection was opened- Parameters:
connection
- the connection
-
onConnectionClosed
Called once a connection ws closed.- Parameters:
connection
- the closed connection
-
onNodeConnected
Called once a node connection is opened and registered. -
onNodeDisconnected
Called once a node connection is closed and unregistered.
-