AsyncClientGet(BatchPolicy, CancellationToken, Key, String) Method

Asynchronously read multiple record headers and bins for specified keys in one batch call. Create listener, call asynchronous batch get and return task monitor.

If a key is not found, the record will be null.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public Task<Record[]> Get(
	BatchPolicy policy,
	CancellationToken token,
	Key[] keys,
	params string[] binNames
)

Parameters

policy  BatchPolicy
batch configuration parameters, pass in null for defaults
token  CancellationToken
cancellation token
keys  Key
array of unique record identifiers
binNames  String
array of bins to retrieve

Return Value

TaskRecord

Implements

IAsyncClientGet(BatchPolicy, CancellationToken, Key, String)

Exceptions

AerospikeExceptionif queue is full

See Also