Package com.mongodb.event
Interface CommandListener
-
public interface CommandListener
A listener for command events- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
commandFailed(CommandFailedEvent event)
Listener for command failure eventsdefault void
commandStarted(CommandStartedEvent event)
Listener for command started events.default void
commandSucceeded(CommandSucceededEvent event)
Listener for command completed events
-
-
-
Method Detail
-
commandStarted
default void commandStarted(CommandStartedEvent event)
Listener for command started events.- Parameters:
event
- the event
-
commandSucceeded
default void commandSucceeded(CommandSucceededEvent event)
Listener for command completed events- Parameters:
event
- the event
-
commandFailed
default void commandFailed(CommandFailedEvent event)
Listener for command failure events- Parameters:
event
- the event
-
-