Package com.ultikits.ultitools.websocket
Interface ReconnectStrategy
- All Known Implementing Classes:
ExponentialBackoffStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
There is no replacement: the framework's own UltiCloud session (protocol 2.0.0)
paces its reconnects itself. Removed in 6.4.0.
Strategy interface for WebSocket reconnection behavior.
As of 6.3.1 nothing in the framework uses it: it described the protocol v1 reconnect loop.
- Since:
- 6.2.0
- Version:
- 1.0.0
- Author:
- wisdomme
- Scheduled removal version:
- 6.4.0
-
Method Summary
Modifier and TypeMethodDescriptionintDeprecated, for removal: This API element is subject to removal in a future version.Gets the current attempt count.longDeprecated, for removal: This API element is subject to removal in a future version.Gets the delay in milliseconds before the next reconnection attempt.voidreset()Deprecated, for removal: This API element is subject to removal in a future version.Resets the strategy state (called on successful connection).booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if reconnection should continue.
-
Method Details
-
getNextDelay
long getNextDelay()Deprecated, for removal: This API element is subject to removal in a future version.Gets the delay in milliseconds before the next reconnection attempt.- Returns:
- the delay in milliseconds
-
reset
void reset()Deprecated, for removal: This API element is subject to removal in a future version.Resets the strategy state (called on successful connection). -
getAttemptCount
int getAttemptCount()Deprecated, for removal: This API element is subject to removal in a future version.Gets the current attempt count.- Returns:
- the number of attempts made
-
shouldContinue
boolean shouldContinue()Deprecated, for removal: This API element is subject to removal in a future version.Checks if reconnection should continue.- Returns:
- true if more reconnection attempts should be made
-