Class SessionConnectionStateErrorPolicy
- java.lang.Object
-
- org.apache.curator.framework.state.SessionConnectionStateErrorPolicy
-
- All Implemented Interfaces:
ConnectionStateErrorPolicy
public class SessionConnectionStateErrorPolicy extends java.lang.Object implements ConnectionStateErrorPolicy
This policy treats onlyConnectionState.LOSTas an error
-
-
Constructor Summary
Constructors Constructor Description SessionConnectionStateErrorPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisErrorState(ConnectionState state)Returns true if the given state should cause the recipe to act as though the connection has been lost.
-
-
-
Method Detail
-
isErrorState
public boolean isErrorState(ConnectionState state)
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
-
-