MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded

Notification method for a successful command

Description

abstract public void MongoDB\Driver\Monitoring\CommandSubscriber::commandSucceeded(MongoDB\Driver\Monitoring\CommandSucceededEvent $event)

If the subscriber is registered, this method is called when a command succeeds.

Parameters

event (MongoDB\Driver\Monitoring\CommandSucceededEvent)

An event object encapsulating information about the successful command.

Return Values

No value is returned.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

See Also