AsyncClientGet(BatchPolicy, CancellationToken, 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.

Create listener, call asynchronous batch get and return task monitor.

Definition

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

Parameters

policy  BatchPolicy
batch configuration parameters, pass in null for defaults
token  CancellationToken
cancellation token
records  ListBatchRead
list of unique record identifiers and the bins to retrieve.

Return Value

TaskListBatchRead

Implements

IAsyncClientGet(BatchPolicy, CancellationToken, ListBatchRead)

Exceptions

AerospikeExceptionif read fails

See Also