Interface RecordArrayListener


public interface RecordArrayListener
Asynchronous result notifications for batch get commands. The result is sent in a single array.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called when the command fails.
    void
    onSuccess(Key[] keys, Record[] records)
    This method is called when the command completes successfully.
  • Method Details

    • onSuccess

      void onSuccess(Key[] keys, Record[] records)
      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 identifiers
      records - record instances, an instance will be null if the key is not found
    • onFailure

      void onFailure(AerospikeException ae)
      This method is called when the command fails. The AerospikeException is likely to be AerospikeException.BatchRecords which contains results for keys that did complete.