IAsyncClientOperate Method (BatchPolicy, BatchWritePolicy, CancellationToken, Key, Operation)

Aerospike
Asynchronously perform read/write operations on multiple keys. 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#
Task<BatchResults> Operate(
	BatchPolicy batchPolicy,
	BatchWritePolicy writePolicy,
	CancellationToken token,
	Key[] keys,
	params Operation[] ops
)

Parameters

batchPolicy
Type: Aerospike.ClientBatchPolicy
batch configuration parameters, pass in null for defaults
writePolicy
Type: Aerospike.ClientBatchWritePolicy
write 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/write operations on record

Return Value

Type: TaskBatchResults
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference