Package com.mongodb.event
Interface CommandListener
public interface CommandListener
A listener for command events
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcommandFailed(CommandFailedEvent event) Listener for command failure eventsdefault voidListener for command started events.default voidListener 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
-