com.aerospike.client.listener
Interface RecordArrayListener


public interface RecordArrayListener

Asynchronous result notifications for batch get commands. The result is sent in a single array.


Method Summary
 void onFailure(AerospikeException exception)
          This method is called when an asynchronous batch get command fails.
 void onSuccess(Key[] keys, Record[] records)
          This method is called when an asynchronous batch get command completes successfully.
 

Method Detail

onSuccess

void onSuccess(Key[] keys,
               Record[] records)
This method is called when an asynchronous batch get command completes successfully. The returned record array is in positional order with the original key array order.

Parameters:
keys - unique record identifiers
records - record instances, an instance will be null if the key is not found

onFailure

void onFailure(AerospikeException exception)
This method is called when an asynchronous batch get command fails.

Parameters:
exception - error that occurred


Copyright © 2012–2014 Aerospike, Inc. All rights reserved.