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