Package com.mongodb.event
Class CommandListenerMulticaster
- java.lang.Object
-
- com.mongodb.event.CommandListenerMulticaster
-
- All Implemented Interfaces:
CommandListener
@Immutable @Deprecated public class CommandListenerMulticaster extends java.lang.Object implements CommandListener
Deprecated.register multiple command listeners in the settingsA 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
Constructors Constructor Description CommandListenerMulticaster(java.util.List<CommandListener> commandListeners)
Deprecated.Construct an instance with the given list of command listeners
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
commandFailed(CommandFailedEvent event)
Deprecated.Listener for command failure eventsvoid
commandStarted(CommandStartedEvent event)
Deprecated.Listener for command started events.void
commandSucceeded(CommandSucceededEvent event)
Deprecated.Listener for command completed eventsjava.util.List<CommandListener>
getCommandListeners()
Deprecated.Gets the command listeners.
-
-
-
Constructor Detail
-
CommandListenerMulticaster
public CommandListenerMulticaster(java.util.List<CommandListener> commandListeners)
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 Detail
-
getCommandListeners
public java.util.List<CommandListener> getCommandListeners()
Deprecated.Gets the command listeners.- Returns:
- the unmodifiable set of command listeners
-
commandStarted
public void commandStarted(CommandStartedEvent event)
Deprecated.Description copied from interface:CommandListener
Listener for command started events.- Specified by:
commandStarted
in interfaceCommandListener
- Parameters:
event
- the event
-
commandSucceeded
public void commandSucceeded(CommandSucceededEvent event)
Deprecated.Description copied from interface:CommandListener
Listener for command completed events- Specified by:
commandSucceeded
in interfaceCommandListener
- Parameters:
event
- the event
-
commandFailed
public void commandFailed(CommandFailedEvent event)
Deprecated.Description copied from interface:CommandListener
Listener for command failure events- Specified by:
commandFailed
in interfaceCommandListener
- Parameters:
event
- the event
-
-