Class SessionConnectionStateErrorPolicy
java.lang.Object
org.apache.curator.framework.state.SessionConnectionStateErrorPolicy
- All Implemented Interfaces:
ConnectionStateErrorPolicy
This policy treats only
ConnectionState.LOST
as an error-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isErrorState
(ConnectionState state) Returns true if the given state should cause the recipe to act as though the connection has been lost.
-
Constructor Details
-
SessionConnectionStateErrorPolicy
public SessionConnectionStateErrorPolicy()
-
-
Method Details
-
isErrorState
Description copied from interface:ConnectionStateErrorPolicy
Returns true if the given state should cause the recipe to act as though the connection has been lost. i.e. locks should exit, etc.- Specified by:
isErrorState
in interfaceConnectionStateErrorPolicy
- Parameters:
state
- the state- Returns:
- true/false
-