Interface IConnectionMonitor<T,L>
- All Known Implementing Classes:
AbstractScheduledPoolConnectionMonitor,DirectConnectionScheduledPoolConnectionMonitor,DummyConnectionMonitor,FailureDetectorConnectionMonitor,LocalClusterReplicationScheduledPoolConnectionMonitor,LusScheduledPoolConnectionMonitor
public interface IConnectionMonitor<T,L>
Monitors
AbstractProxyBasedReplicationMonitoredConnection state- Since:
- 8.0
- Author:
- eitany
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidmonitor(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection) Adds a new connection to monitorvoidstopMonitoring(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection) Stops monitoring the specified connectionvoidupdateDisconnected(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection, Exception reason) Update the monitor externally that the provided connection is disconnected Due to some call dispatch on that proxy which throw a remote exception
-
Method Details
-
monitor
Adds a new connection to monitor- Parameters:
connection- connection to monitor
-
updateDisconnected
void updateDisconnected(AbstractProxyBasedReplicationMonitoredConnection<T, L> connection, Exception reason) Update the monitor externally that the provided connection is disconnected Due to some call dispatch on that proxy which throw a remote exception- Parameters:
connection- connection that was disconnected
-
stopMonitoring
Stops monitoring the specified connection- Parameters:
connection- that should be not be monitored anymore
-
close
void close() -
dumpState
String dumpState()
-