Package com.mongodb.event
Interface CommandListener
-
- All Known Implementing Classes:
CommandEventMulticaster
,CommandListenerMulticaster
public interface CommandListener
A listener for command events- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
commandFailed(CommandFailedEvent event)
Listener for command failure eventsvoid
commandStarted(CommandStartedEvent event)
Listener for command started events.void
commandSucceeded(CommandSucceededEvent event)
Listener for command completed events
-
-
-
Method Detail
-
commandStarted
void commandStarted(CommandStartedEvent event)
Listener for command started events.- Parameters:
event
- the event
-
commandSucceeded
void commandSucceeded(CommandSucceededEvent event)
Listener for command completed events- Parameters:
event
- the event
-
commandFailed
void commandFailed(CommandFailedEvent event)
Listener for command failure events- Parameters:
event
- the event
-
-