BatchSequenceListener Methods

Methods

OnFailure This method is called when the command fails.
OnRecord This method is called when an asynchronous batch record is received from the server. The receive sequence is not ordered.

This method is not thread-safe. Multiple async completion port threads may be calling this listener method simultaneously. All shared data in the callback must be handled in a thread-safe manner.

The user may throw AerospikeException if the command should be aborted. If any exception is thrown, parallel command threads to other nodes will also be terminated and the exception will be propagated back through the OnFailure() call.

OnSuccess This method is called when the command completes successfully.

See Also