public interface ClientConnectionMonitor extends FatalFailureMonitor
LOG| Modifier and Type | Method and Description |
|---|---|
void |
onConnected(String name,
SocketAddress socketAddress)
Call just after the client as successfully established a connection to the server
|
void |
onDisconnected(String name,
SocketAddress socketAddress)
call just after the client has disconnect to the server, this maybe called as part of a
failover
|
onFatalFailurevoid onConnected(@Nullable
String name,
@NotNull
SocketAddress socketAddress)
name - the name of the connectionsocketAddress - the address that we have just connected tovoid onDisconnected(@Nullable
String name,
@NotNull
SocketAddress socketAddress)
name - the name of the connectionsocketAddress - the address of the socket that we have been disconnected fromCopyright © 2017. All rights reserved.