public interface FailoverManager
Modifier and Type | Method and Description |
---|---|
FailoverDecision |
onFailover(FailoverStatus failoverStatus)
Needs to be invoked to determine a decision that resolves the failover.
|
void |
onServerChanged(TransportConnectionInfo connectionInfo)
Needs to be invoked as soon as current server is changed.
|
void |
onServerConnected(TransportConnectionInfo connectionInfo)
Needs to be invoked as soon as connection to the current server is established.
|
void |
onServerFailed(TransportConnectionInfo connectionInfo)
Needs to be invoked when a server fail occurs.
|
void onServerFailed(TransportConnectionInfo connectionInfo)
connectionInfo
- the connection information of the failed server.TransportConnectionInfo
void onServerChanged(TransportConnectionInfo connectionInfo)
connectionInfo
- the connection information of the newly connected server.TransportConnectionInfo
void onServerConnected(TransportConnectionInfo connectionInfo)
connectionInfo
- the connection information of the current server,
to which connection was successfully established.TransportConnectionInfo
FailoverDecision onFailover(FailoverStatus failoverStatus)
failoverStatus
- current status of the failover.FailoverDecision
,
FailoverStatus
Copyright © 2015. All rights reserved.