Package com.mongodb.event
Interface ServerMonitorListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ServerMonitorListenerAdapter
public interface ServerMonitorListener extends EventListener
A listener for server monitor-related events- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
serverHearbeatStarted(ServerHeartbeatStartedEvent event)
Listener for server heartbeat started events.default void
serverHeartbeatFailed(ServerHeartbeatFailedEvent event)
Listener for server heartbeat failed events.default void
serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event)
Listener for server heartbeat succeeded events.
-
-
-
Method Detail
-
serverHearbeatStarted
default void serverHearbeatStarted(ServerHeartbeatStartedEvent event)
Listener for server heartbeat started events.- Parameters:
event
- the server heartbeat started event
-
serverHeartbeatSucceeded
default void serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event)
Listener for server heartbeat succeeded events.- Parameters:
event
- the server heartbeat succeeded event
-
serverHeartbeatFailed
default void serverHeartbeatFailed(ServerHeartbeatFailedEvent event)
Listener for server heartbeat failed events.- Parameters:
event
- the server heartbeat failed event
-
-