Package com.mongodb.event
Class ServerMonitorEventMulticaster
- java.lang.Object
-
- com.mongodb.event.ServerMonitorEventMulticaster
-
- All Implemented Interfaces:
ServerMonitorListener
,EventListener
@Deprecated public final class ServerMonitorEventMulticaster extends Object implements ServerMonitorListener
Deprecated.register multiple server monitor listeners insteadA multicaster for server events.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ServerMonitorEventMulticaster(List<ServerMonitorListener> serverMonitorListeners)
Deprecated.Construct an instance with the given list of server monitor listeners
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<ServerMonitorListener>
getServerMonitorListeners()
Deprecated.Gets the server monitor listeners.void
serverHearbeatStarted(ServerHeartbeatStartedEvent event)
Deprecated.Listener for server heartbeat started events.void
serverHeartbeatFailed(ServerHeartbeatFailedEvent event)
Deprecated.Listener for server heartbeat failed events.void
serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event)
Deprecated.Listener for server heartbeat succeeded events.
-
-
-
Constructor Detail
-
ServerMonitorEventMulticaster
public ServerMonitorEventMulticaster(List<ServerMonitorListener> serverMonitorListeners)
Deprecated.Construct an instance with the given list of server monitor listeners- Parameters:
serverMonitorListeners
- the non-null list of server monitor listeners, none of which may be null
-
-
Method Detail
-
getServerMonitorListeners
public List<ServerMonitorListener> getServerMonitorListeners()
Deprecated.Gets the server monitor listeners.- Returns:
- the server monitor listeners
-
serverHearbeatStarted
public void serverHearbeatStarted(ServerHeartbeatStartedEvent event)
Deprecated.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)
Deprecated.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)
Deprecated.Description copied from interface:ServerMonitorListener
Listener for server heartbeat failed events.- Specified by:
serverHeartbeatFailed
in interfaceServerMonitorListener
- Parameters:
event
- the server heartbeat failed event
-
-