Interface ReconnectionStrategy.ReconnectionAttempt
- Enclosing interface:
- ReconnectionStrategy
public static interface ReconnectionStrategy.ReconnectionAttempt
A single reconnection attempt that can either be started or aborted.
-
Method Details
-
getAttempt
int getAttempt()Provides the reconnection attempt number.On the first reconnection attempt after a disconnection this will be set to 1, and will be incremented by 1 for each subsequent attempt.
This provide the implementation with the ability to vary the behaviour according to the number of attempts that have been made.
- Returns:
- the attempt number. The first attempt is 1
- Since:
- 6.13
-
start
void start()Start the reconnection attempt. -
abort
void abort()Abort the reconnection attempt. This will cause the session to transition toCLOSED_FAILED.
-