- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ReconnectStrategy
A contract to determine the frequency of reconnect attempts after connection failure.
- Rossen Stoyanchev
getTimeToNextAttemptReturn the time to the next attempt to reconnect.
attemptCount- how many reconnect attempts have been made already
- the amount of time in milliseconds, or