Package org.redisson.client
Class FailedCommandsTimeoutDetector
java.lang.Object
org.redisson.client.FailedCommandsDetector
org.redisson.client.FailedCommandsTimeoutDetector
- All Implemented Interfaces:
FailedNodeDetector
Detects failed Redis node if it has certain amount of command execution timeout errors
failedCommandsLimit in checkInterval time interval.- Author:
- Nikita Koksharov
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.redisson.client.FailedCommandsDetector
isNodeFailed, onCommandSuccessful, onConnectFailed, onConnectSuccessful, onPingFailed, onPingSuccessful, setCheckInterval, setFailedCommandsLimit
-
Constructor Details
-
FailedCommandsTimeoutDetector
public FailedCommandsTimeoutDetector() -
FailedCommandsTimeoutDetector
public FailedCommandsTimeoutDetector(long checkInterval, int failedCommandsLimit)
-
-
Method Details
-
onCommandFailed
- Specified by:
onCommandFailedin interfaceFailedNodeDetector- Overrides:
onCommandFailedin classFailedCommandsDetector
-