AsyncClientOperate Method (BatchPolicy, CancellationToken, ListBatchRecord)

Aerospike
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.1.0 (5.1.1)
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: TaskBoolean
Task with completion status: true if all batch sub-transactions were successful.

Implements

IAsyncClientOperate(BatchPolicy, CancellationToken, ListBatchRecord)
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference