Asynchronously read/write multiple records for specified batch keys in one batch call.
Create listener, call asynchronous delete and return task monitor.
Requires server version 6.0+
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.0.0 (5.1.0)
Syntax
C#
public Task<bool> Operate( BatchPolicy policy, CancellationToken token, List<BatchRecord> records )
Parameters
- policy
- Type: Aerospike.ClientBatchPolicy
batch configuration parameters, pass in null for defaults - token
- Type: System.ThreadingCancellationToken
cancellation token - records
- Type: System.Collections.GenericListBatchRecord
list of unique record identifiers and read/write operations
Return Value
Type: TaskBooleanTask with completion status: true if all batch sub-transactions were successful.
Implements
IAsyncClientOperate(BatchPolicy, CancellationToken, ListBatchRecord)Exceptions
Exception | Condition |
---|---|
AerospikeException | if queue is full |
See Also