Package com.mongodb.event
Class ServerMonitorEventMulticaster
- java.lang.Object
-
- com.mongodb.event.ServerMonitorEventMulticaster
-
- All Implemented Interfaces:
ServerMonitorListener
,java.util.EventListener
@Deprecated public final class ServerMonitorEventMulticaster extends java.lang.Object implements ServerMonitorListener
Deprecated.register multiple server monitor listeners insteadA multicaster for server events.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ServerMonitorEventMulticaster(java.util.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 java.util.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(java.util.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 java.util.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
-
-