public interface FailoverStrategy
Modifier and Type | Method and Description |
---|---|
long |
getBootstrapServersRetryPeriod()
Use the
getTimeUnit() method to get current time unit. |
long |
getOperationServersRetryPeriod()
Use the
getTimeUnit() method to get current time unit. |
TimeUnit |
getTimeUnit() |
FailoverDecision |
onFailover(FailoverStatus failoverStatus)
Needs to be invoked to determine a decision that resolves the failover.
|
void |
onRecover(TransportConnectionInfo connectionInfo)
Needs to be invoked once client recovered after failover.
|
FailoverDecision onFailover(FailoverStatus failoverStatus)
failoverStatus
- current status of the failover.FailoverDecision
,
FailoverStatus
void onRecover(TransportConnectionInfo connectionInfo)
connectionInfo
- server informationTransportConnectionInfo
long getBootstrapServersRetryPeriod()
getTimeUnit()
method to get current time unit.long getOperationServersRetryPeriod()
getTimeUnit()
method to get current time unit.TimeUnit getTimeUnit()
Copyright © 2016. All rights reserved.