@FunctionalInterface
public interface ReconnectStrategy
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getTimeToNextAttempt(int attemptCount)
Return the time to the next attempt to reconnect.
|
@Nullable java.lang.Long getTimeToNextAttempt(int attemptCount)
attemptCount - how many reconnect attempts have been made alreadynull to stop