Package com.mongodb.event
Class CommandListenerMulticaster
java.lang.Object
com.mongodb.event.CommandListenerMulticaster
- All Implemented Interfaces:
CommandListener
@Immutable
@Deprecated
public class CommandListenerMulticaster
extends Object
implements CommandListener
Deprecated.
register multiple command listeners in the settings
A multicaster for connection events. Any Exception thrown by one of the listeners will be caught and not re-thrown, but may be
logged.
- Since:
- 3.1
-
Constructor Summary
ConstructorsConstructorDescriptionCommandListenerMulticaster(List<CommandListener> commandListeners) Deprecated.Construct an instance with the given list of command listeners -
Method Summary
Modifier and TypeMethodDescriptionvoidcommandFailed(CommandFailedEvent event) Deprecated.Listener for command failure eventsvoidDeprecated.Listener for command started events.voidDeprecated.Listener for command completed eventsDeprecated.Gets the command listeners.
-
Constructor Details
-
CommandListenerMulticaster
Deprecated.Construct an instance with the given list of command listeners- Parameters:
commandListeners- the non-null list of command listeners, none of which may be null
-
-
Method Details
-
getCommandListeners
Deprecated.Gets the command listeners.- Returns:
- the unmodifiable set of command listeners
-
commandStarted
Deprecated.Description copied from interface:CommandListenerListener for command started events.- Specified by:
commandStartedin interfaceCommandListener- Parameters:
event- the event
-
commandSucceeded
Deprecated.Description copied from interface:CommandListenerListener for command completed events- Specified by:
commandSucceededin interfaceCommandListener- Parameters:
event- the event
-
commandFailed
Deprecated.Description copied from interface:CommandListenerListener for command failure events- Specified by:
commandFailedin interfaceCommandListener- Parameters:
event- the event
-