Interface ExistsListener


public interface ExistsListener
Asynchronous result notifications for exists commands.
  • Method Summary

    Modifier and Type Method Description
    void onFailure​(AerospikeException exception)
    This method is called when an asynchronous exists command fails.
    void onSuccess​(Key key, boolean exists)
    This method is called when an asynchronous exists command completes successfully.
  • Method Details

    • onSuccess

      void onSuccess​(Key key, boolean exists)
      This method is called when an asynchronous exists command completes successfully.
      Parameters:
      key - unique record identifier
      exists - whether key exists on server
    • onFailure

      void onFailure​(AerospikeException exception)
      This method is called when an asynchronous exists command fails.
      Parameters:
      exception - error that occurred