Package com.mongodb.event
Interface ServerMonitorListener
- All Superinterfaces:
EventListener
A listener for server monitor-related events
See ClusterListener
for the details regarding the order of events and memory synchronization.
- Since:
- 3.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Listener for server heartbeat started events.default void
Listener for server heartbeat failed events.default void
Listener for server heartbeat succeeded events.
-
Method Details
-
serverHearbeatStarted
Listener for server heartbeat started events.- Parameters:
event
- the server heartbeat started event
-
serverHeartbeatSucceeded
Listener for server heartbeat succeeded events.- Parameters:
event
- the server heartbeat succeeded event
-
serverHeartbeatFailed
Listener for server heartbeat failed events.- Parameters:
event
- the server heartbeat failed event
-