public interface BatchSequenceListener
Modifier and Type | Method and Description |
---|---|
void |
onFailure(AerospikeException exception)
This method is called when an asynchronous batch get command fails.
|
void |
onRecord(BatchRead record)
This method is called when an asynchronous batch record is received from the server.
|
void |
onSuccess()
This method is called when the asynchronous batch get command completes.
|
void onRecord(BatchRead record)
The user may throw a
AerospikeException.QueryTerminated
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
onFailure() call.
record
- record instance, BatchRead.record
will be null if the key is not foundAerospikeException
- if error occurs or batch should be terminated.void onSuccess()
void onFailure(AerospikeException exception)
exception
- error that occurredCopyright ? 2012–2018 Aerospike, Inc. All rights reserved.