Package com.aerospike.client.listener
Interface RecordArrayListener
public interface RecordArrayListener
Asynchronous result notifications for batch get commands.
The result is sent in a single array.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called when the command fails.void
This method is called when the command completes successfully.
-
Method Details
-
onSuccess
This method is called when the command completes successfully. The returned record array is in positional order with the original key array order.- Parameters:
keys
- unique record identifiersrecords
- record instances, an instance will be null if the key is not found
-
onFailure
This method is called when the command fails. The AerospikeException is likely to beAerospikeException.BatchRecords
which contains results for keys that did complete.
-