Package com.mongodb.event
Interface ServerMonitorListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ServerMonitorListenerAdapter
A listener for server monitor-related events
It does not have to be thread-safe, see ClusterListener
for the details regarding the order of events.
- 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
-