Package org.redisson.client
Class FailedConnectionDetector
java.lang.Object
org.redisson.client.FailedConnectionDetector
- All Implemented Interfaces:
FailedNodeDetector
Detects failed Redis node if it has ongoing connection errors in
checkInterval
time interval.- Author:
- Nikita Koksharov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
onCommandFailed
(Throwable cause) void
void
void
void
void
-
Constructor Details
-
FailedConnectionDetector
public FailedConnectionDetector() -
FailedConnectionDetector
public FailedConnectionDetector(long checkInterval)
-
-
Method Details
-
onConnectFailed
public void onConnectFailed()- Specified by:
onConnectFailed
in interfaceFailedNodeDetector
-
onConnectSuccessful
public void onConnectSuccessful()- Specified by:
onConnectSuccessful
in interfaceFailedNodeDetector
-
onPingSuccessful
public void onPingSuccessful()- Specified by:
onPingSuccessful
in interfaceFailedNodeDetector
-
onCommandSuccessful
public void onCommandSuccessful()- Specified by:
onCommandSuccessful
in interfaceFailedNodeDetector
-
onPingFailed
public void onPingFailed()- Specified by:
onPingFailed
in interfaceFailedNodeDetector
-
onCommandFailed
- Specified by:
onCommandFailed
in interfaceFailedNodeDetector
-
isNodeFailed
public boolean isNodeFailed()- Specified by:
isNodeFailed
in interfaceFailedNodeDetector
-