AsyncClientGet(BatchPolicy, BatchSequenceListener, ListBatchRead) Method

Asynchronously read multiple records for specified batch keys in one batch call. This method allows different namespaces/bins to be requested for each key in the batch. The returned records are located in the same list. If the BatchRecord key field is not found, the corresponding record field will be null.

This method schedules the get command with a channel selector and returns. Another thread will process the command and send the results to the listener in a single call.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public void Get(
	BatchPolicy policy,
	BatchSequenceListener listener,
	List<BatchRead> records
)

Parameters

policy  BatchPolicy
batch configuration parameters, pass in null for defaults
listener  BatchSequenceListener
where to send results
records  ListBatchRead
list of unique record identifiers and the bins to retrieve.

Implements

IAsyncClientGet(BatchPolicy, BatchSequenceListener, ListBatchRead)

Exceptions

AerospikeExceptionif read fails

See Also