Package com.mongodb.event
Class ServerEventMulticaster
- java.lang.Object
-
- com.mongodb.event.ServerEventMulticaster
-
- All Implemented Interfaces:
ServerListener
,EventListener
@Deprecated public final class ServerEventMulticaster extends Object implements ServerListener
Deprecated.register multiple server listeners insteadA multicaster for server events.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ServerEventMulticaster(List<ServerListener> serverListeners)
Deprecated.Construct an instance with the given list of server listeners
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<ServerListener>
getServerListeners()
Deprecated.Gets the server listeners.void
serverClosed(ServerClosedEvent event)
Deprecated.Listener for server closed events.void
serverDescriptionChanged(ServerDescriptionChangedEvent event)
Deprecated.Listener for server description changed events.void
serverOpening(ServerOpeningEvent event)
Deprecated.Listener for server opening events.
-
-
-
Constructor Detail
-
ServerEventMulticaster
public ServerEventMulticaster(List<ServerListener> serverListeners)
Deprecated.Construct an instance with the given list of server listeners- Parameters:
serverListeners
- the non-null list of server listeners, none of which may be null
-
-
Method Detail
-
getServerListeners
public List<ServerListener> getServerListeners()
Deprecated.Gets the server listeners.- Returns:
- the server listeners
-
serverOpening
public void serverOpening(ServerOpeningEvent event)
Deprecated.Description copied from interface:ServerListener
Listener for server opening events.- Specified by:
serverOpening
in interfaceServerListener
- Parameters:
event
- the server opening event
-
serverClosed
public void serverClosed(ServerClosedEvent event)
Deprecated.Description copied from interface:ServerListener
Listener for server closed events.- Specified by:
serverClosed
in interfaceServerListener
- Parameters:
event
- the server closed event
-
serverDescriptionChanged
public void serverDescriptionChanged(ServerDescriptionChangedEvent event)
Deprecated.Description copied from interface:ServerListener
Listener for server description changed events.- Specified by:
serverDescriptionChanged
in interfaceServerListener
- Parameters:
event
- the server description changed event
-
-