Interface ExistsArrayListener


public interface ExistsArrayListener
Asynchronous result notifications for batch exists 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, boolean[] exists)
    This method is called when the command completes successfully.
  • Method Details

    • onSuccess

      void onSuccess(Key[] keys, boolean[] exists)
      This method is called when the command completes successfully. The returned boolean array is in positional order with the original key array order.
      Parameters:
      keys - unique record identifiers
      exists - whether keys exists on server
    • onFailure

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