-
public interface StreamConnectionRecoveryEvaluatorEvaluates the current connection state and network availability to determine whether a reconnect or disconnect action should be taken.
Implementations are responsible for defining the heuristics that determine when a reconnect or disconnect should be triggered based on the current connection state and network availability.
-
-
Method Summary
Modifier and Type Method Description abstract Result<Recovery>evaluate(StreamConnectionState connectionState, StreamLifecycleState lifecycleState, StreamNetworkState networkState)Evaluates the current connection state and network availability to determine whether a reconnect or disconnect action should be taken. -
-
Method Detail
-
evaluate
abstract Result<Recovery> evaluate(StreamConnectionState connectionState, StreamLifecycleState lifecycleState, StreamNetworkState networkState)
Evaluates the current connection state and network availability to determine whether a reconnect or disconnect action should be taken.
- Parameters:
lifecycleState- The current lifecycle state.networkState- The current network state.
-
-
-
-