Interface BatchRecordArrayListener


public interface BatchRecordArrayListener
Asynchronous result notifications for batch operate commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called when one or more keys fail.
    void
    onSuccess(BatchRecord[] records, boolean status)
    This method is called when the command completes successfully.
  • Method Details

    • onSuccess

      void onSuccess(BatchRecord[] records, boolean status)
      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

      void onFailure(BatchRecord[] records, AerospikeException ae)
      This method is called when one or more keys fail.
      Parameters:
      records - record instances, always populated. BatchRecord.resultCode indicates if an error occurred for each record instance.
      ae - error that occurred