com.aerospike.client.listener
Interface RecordListener


public interface RecordListener

Asynchronous result notifications for get or operate commands.


Method Summary
 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 Detail

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