Class StandardConnectionStateErrorPolicy
java.lang.Object
org.apache.curator.framework.state.StandardConnectionStateErrorPolicy
- All Implemented Interfaces:
ConnectionStateErrorPolicy
public class StandardConnectionStateErrorPolicy
extends Object
implements ConnectionStateErrorPolicy
This policy treats
ConnectionState.SUSPENDED
and ConnectionState.LOST
as errors-
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
-
StandardConnectionStateErrorPolicy
public StandardConnectionStateErrorPolicy()
-
-
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
-