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 Details

    • CommandListenerMulticaster

      public CommandListenerMulticaster(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 Details