Interface RecordListener


public interface RecordListener
Asynchronous result notifications for get or operate commands.
  • Method Summary

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

    • onSuccess

      void onSuccess​(Key key, Record record)
      This method is called when an asynchronous get or operate command completes successfully.
      Parameters:
      key - unique record identifier
      record - record instance if found, otherwise null
    • onFailure

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