Package com.mongodb.event
Class ServerMonitorListenerAdapter
- java.lang.Object
-
- com.mongodb.event.ServerMonitorListenerAdapter
-
- All Implemented Interfaces:
ServerMonitorListener
,EventListener
public abstract class ServerMonitorListenerAdapter extends Object implements ServerMonitorListener
An adapter for server monitor listener implementations, for clients that want to listen for a subset of server monitor-related events. Extend this class to listen for server monitor-related events and override the methods of interest.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description ServerMonitorListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete 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
public void serverHearbeatStarted(ServerHeartbeatStartedEvent event)
Description copied from interface:ServerMonitorListener
Listener for server heartbeat started events.- Specified by:
serverHearbeatStarted
in interfaceServerMonitorListener
- Parameters:
event
- the server heartbeat started event
-
serverHeartbeatSucceeded
public void serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event)
Description copied from interface:ServerMonitorListener
Listener for server heartbeat succeeded events.- Specified by:
serverHeartbeatSucceeded
in interfaceServerMonitorListener
- Parameters:
event
- the server heartbeat succeeded event
-
serverHeartbeatFailed
public void serverHeartbeatFailed(ServerHeartbeatFailedEvent event)
Description copied from interface:ServerMonitorListener
Listener for server heartbeat failed events.- Specified by:
serverHeartbeatFailed
in interfaceServerMonitorListener
- Parameters:
event
- the server heartbeat failed event
-
-