Interface ConnectionStateErrorPolicy
- All Known Implementing Classes:
SessionConnectionStateErrorPolicy
,StandardConnectionStateErrorPolicy
public interface ConnectionStateErrorPolicy
Recipes should use the configured error policy to decide how to handle
errors such as
ConnectionState
changes.- Since:
- 3.0.0
-
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.
-
Method Details
-
isErrorState
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.- Parameters:
state
- the state- Returns:
- true/false
-