Package com.aerospike.client.listener
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
This method is called when an asynchronous get or operate command completes successfully.- Parameters:
key
- unique record identifierrecord
- record instance if found, otherwise null
-
onFailure
This method is called when an asynchronous get or operate command fails.- Parameters:
exception
- error that occurred
-