Package com.mongodb.event
Interface CommandListener
public interface CommandListener
A listener for command events
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
commandFailed
(CommandFailedEvent event) Listener for command failure eventsdefault void
Listener for command started events.default void
Listener for command completed events
-
Method Details
-
commandStarted
Listener for command started events.- Parameters:
event
- the event
-
commandSucceeded
Listener for command completed events- Parameters:
event
- the event
-
commandFailed
Listener for command failure events- Parameters:
event
- the event
-