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