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
-
Method Summary
Methods inherited from class org.redisson.client.FailedCommandsDetector
isNodeFailed, onCommandSuccessful, onConnectFailed, onConnectSuccessful, onPingFailed, onPingSuccessful
-
Constructor Details
-
FailedCommandsTimeoutDetector
public FailedCommandsTimeoutDetector(long checkInterval, int failedCommandsLimit)
-
-
Method Details
-
onCommandFailed
- Specified by:
onCommandFailed
in interfaceFailedNodeDetector
- Overrides:
onCommandFailed
in classFailedCommandsDetector
-