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 a exception 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 commandFailed() call.
void OnRecord(
Key key,
Record record
)
AerospikeException | if error occurs or scan should be terminated. |