Asynchronously read multiple record headers and bins for specified keys using read operations
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.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
public Task<Record[]> Get( BatchPolicy policy, CancellationToken token, Key[] keys, params Operation[] ops )
Parameters
- policy
- Type: Aerospike.ClientBatchPolicy
batch configuration parameters, pass in null for defaults - token
- Type: System.ThreadingCancellationToken
cancellation token - keys
- Type: Aerospike.ClientKey
array of unique record identifiers - ops
- Type: Aerospike.ClientOperation
array of read operations on record
Return Value
Type: TaskRecordImplements
IAsyncClientGet(BatchPolicy, CancellationToken, Key, Operation)Exceptions
Exception | Condition |
---|---|
AerospikeException | if queue is full |
See Also