Package org.redisson.client
Class FailedCommandsDetector
java.lang.Object
org.redisson.client.FailedCommandsDetector
- All Implemented Interfaces:
FailedNodeDetector
- Direct Known Subclasses:
FailedCommandsTimeoutDetector
Detects failed Redis node if it has certain amount of command execution errors
failedCommandsLimit in checkInterval time interval.- Author:
- Nikita Koksharov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidonCommandFailed(Throwable cause) voidvoidvoidvoidvoid
-
Constructor Details
-
FailedCommandsDetector
public FailedCommandsDetector(long checkInterval, int failedCommandsLimit)
-
-
Method Details
-
onConnectFailed
public void onConnectFailed()- Specified by:
onConnectFailedin interfaceFailedNodeDetector
-
onConnectSuccessful
public void onConnectSuccessful()- Specified by:
onConnectSuccessfulin interfaceFailedNodeDetector
-
onPingSuccessful
public void onPingSuccessful()- Specified by:
onPingSuccessfulin interfaceFailedNodeDetector
-
onCommandSuccessful
public void onCommandSuccessful()- Specified by:
onCommandSuccessfulin interfaceFailedNodeDetector
-
onPingFailed
public void onPingFailed()- Specified by:
onPingFailedin interfaceFailedNodeDetector
-
onCommandFailed
- Specified by:
onCommandFailedin interfaceFailedNodeDetector
-
isNodeFailed
public boolean isNodeFailed()- Specified by:
isNodeFailedin interfaceFailedNodeDetector
-