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 voidonConnectionClosed(Transport.Connection connection)Called once a connection ws closed.default voidonConnectionOpened(Transport.Connection connection)Called once a connection was openeddefault voidonNodeConnected(DiscoveryNode node, Transport.Connection connection)Called once a node connection is opened and registered.default voidonNodeDisconnected(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.
-