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