public interface ReconnectionStrategy
A reconnection strategy will be applied when the session enters the
RECOVERING_RECONNECT state, allowing the session to attempt to reconnect and
recover its previous state.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ReconnectionStrategy.ReconnectionAttempt
A single reconnection attempt that can either be started or aborted.
|
| Modifier and Type | Method and Description |
|---|---|
void |
performReconnection(ReconnectionStrategy.ReconnectionAttempt reconnection)
This method is called before each reconnection attempt.
|
void performReconnection(ReconnectionStrategy.ReconnectionAttempt reconnection)
ReconnectionStrategy.ReconnectionAttempt.start(), or abort the reconnection by calling
ReconnectionStrategy.ReconnectionAttempt.abort().
Strategies should avoid blocking operations. The
ReconnectionStrategy.ReconnectionAttempt object can be called either directly or
asynchronously (for example, by a scheduled timer) depending on the
strategy.
reconnection - A single reconnection attempt that may be either
started or abortedCopyright © 2025 DiffusionData Limited. All rights reserved.