Package com.aerospike.client.query
Interface QueryListener
public interface QueryListener
Result notification for sync query command.
The results are sent one record at a time.
-
Method Summary
-
Method Details
-
onRecord
This method is called when a record is received from the server. The receive sequence is not ordered.The user may throw a
AerospikeException.QueryTerminated
exception if the command should be aborted. If an exception is thrown, parallel query command threads to other nodes will also be terminated.- Parameters:
key
- unique record identifierrecord
- record instance- Throws:
AerospikeException
- if error occurs or query should be terminated.
-