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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisErrorState(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:ConnectionStateErrorPolicyReturns 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:
isErrorStatein interfaceConnectionStateErrorPolicy- Parameters:
state- the state- Returns:
- true/false
-