public class FixedIntervalReconnectStrategy extends java.lang.Object implements ReconnectStrategy
| Constructor and Description |
|---|
FixedIntervalReconnectStrategy(long interval) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getTimeToNextAttempt(int attemptCount)
Return the time to the next attempt to reconnect.
|
public FixedIntervalReconnectStrategy(long interval)
interval - the frequency, in millisecond, at which to try to reconnectpublic java.lang.Long getTimeToNextAttempt(int attemptCount)
ReconnectStrategygetTimeToNextAttempt in interface ReconnectStrategyattemptCount - how many reconnect attempts have been made alreadynull to stop