Package com.mongodb.event
Class CommandEventMulticaster
java.lang.Object
com.mongodb.event.CommandEventMulticaster
- All Implemented Interfaces:
CommandListener
@Immutable
@Deprecated
public final class CommandEventMulticaster
extends Object
implements CommandListener
Deprecated.
register multiple command listeners instead
A multicaster for command events. Any exception thrown by one of the listeners will be caught and not re-thrown, but may be
logged.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionCommandEventMulticaster
(List<CommandListener> commandListeners) Deprecated.Construct an instance with the given list of command listeners -
Method Summary
Modifier and TypeMethodDescriptionvoid
commandFailed
(CommandFailedEvent event) Deprecated.Listener for command failure eventsvoid
Deprecated.Listener for command started events.void
Deprecated.Listener for command completed eventsDeprecated.Gets the command listeners.
-
Constructor Details
-
CommandEventMulticaster
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:CommandListener
Listener for command started events.- Specified by:
commandStarted
in interfaceCommandListener
- Parameters:
event
- the event
-
commandSucceeded
Deprecated.Description copied from interface:CommandListener
Listener for command completed events- Specified by:
commandSucceeded
in interfaceCommandListener
- Parameters:
event
- the event
-
commandFailed
Deprecated.Description copied from interface:CommandListener
Listener for command failure events- Specified by:
commandFailed
in interfaceCommandListener
- Parameters:
event
- the event
-