Package com.mongodb.event
Class ServerEventMulticaster
- java.lang.Object
-
- com.mongodb.event.ServerEventMulticaster
-
- All Implemented Interfaces:
ServerListener,EventListener
Deprecated.register multiple server listeners instead
@Deprecated public final class ServerEventMulticaster extends Object implements ServerListener
A 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.voidserverClosed(ServerClosedEvent event)Deprecated.Listener for server closed events.voidserverDescriptionChanged(ServerDescriptionChangedEvent event)Deprecated.Listener for server description changed events.voidserverOpening(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:ServerListenerListener for server opening events.- Specified by:
serverOpeningin interfaceServerListener- Parameters:
event- the server opening event
-
serverClosed
public void serverClosed(ServerClosedEvent event)
Deprecated.Description copied from interface:ServerListenerListener for server closed events.- Specified by:
serverClosedin interfaceServerListener- Parameters:
event- the server closed event
-
serverDescriptionChanged
public void serverDescriptionChanged(ServerDescriptionChangedEvent event)
Deprecated.Description copied from interface:ServerListenerListener for server description changed events.- Specified by:
serverDescriptionChangedin interfaceServerListener- Parameters:
event- the server description changed event
-
-