Class StandardConnectionStateErrorPolicy
- java.lang.Object
-
- org.apache.curator.framework.state.StandardConnectionStateErrorPolicy
-
- All Implemented Interfaces:
ConnectionStateErrorPolicy
public class StandardConnectionStateErrorPolicy extends java.lang.Object implements ConnectionStateErrorPolicy
This policy treatsConnectionState.SUSPENDEDandConnectionState.LOSTas errors
-
-
Constructor Summary
Constructors Constructor Description StandardConnectionStateErrorPolicy()
-
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
-
-