|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecordSequenceListener
Asynchronous result notifications for batch get and scan commands. The results are sent one record at a time.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 found
AerospikeException
- if error occurs or scan should be terminated.void onSuccess()
void onFailure(AerospikeException exception)
exception
- error that occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |