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,
FailoverStatus status)
Needs to be invoked when a server fail occurs.
|
void |
setFailoverStrategy(FailoverStrategy failoverStrategy) |
void onServerFailed(TransportConnectionInfo connectionInfo, FailoverStatus status)
connectionInfo
- the connection information of the failed server.status
- 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
void setFailoverStrategy(FailoverStrategy failoverStrategy)
failoverStrategy
- strategy that will be used to resolve failovers.FailoverStrategy
Copyright © 2016. All rights reserved.