Package com.aerospike.client.listener
Interface BatchRecordArrayListener
public interface BatchRecordArrayListener
Asynchronous result notifications for batch operate commands.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonFailure(BatchRecord[] records, AerospikeException ae) This method is called when one or more keys fail.voidonSuccess(BatchRecord[] records, boolean status) 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:
records- record instances, always populated.status- true if all records returned success.
-
onFailure
This method is called when one or more keys fail.- Parameters:
records- record instances, always populated.BatchRecord.resultCodeindicates if an error occurred for each record instance.ae- error that occurred
-