Package com.mongodb.event
Class ServerEventMulticaster
java.lang.Object
com.mongodb.event.ServerEventMulticaster
- All Implemented Interfaces:
ServerListener,EventListener
Deprecated.
register multiple server listeners instead
A multicaster for server events.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionServerEventMulticaster(List<ServerListener> serverListeners) Deprecated.Construct an instance with the given list of server listeners -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the server listeners.voidserverClosed(ServerClosedEvent event) Deprecated.Listener for server closed events.voidDeprecated.Listener for server description changed events.voidserverOpening(ServerOpeningEvent event) Deprecated.Listener for server opening events.
-
Constructor Details
-
ServerEventMulticaster
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 Details
-
getServerListeners
Deprecated.Gets the server listeners.- Returns:
- the server listeners
-
serverOpening
Deprecated.Description copied from interface:ServerListenerListener for server opening events.- Specified by:
serverOpeningin interfaceServerListener- Parameters:
event- the server opening event
-
serverClosed
Deprecated.Description copied from interface:ServerListenerListener for server closed events.- Specified by:
serverClosedin interfaceServerListener- Parameters:
event- the server closed event
-
serverDescriptionChanged
Deprecated.Description copied from interface:ServerListenerListener for server description changed events.- Specified by:
serverDescriptionChangedin interfaceServerListener- Parameters:
event- the server description changed event
-