IAsyncClient.Operate(BatchPolicy, BatchWritePolicy, CancellationToken, Key[], Operation[]) Method

Asynchronously perform read/write operations on multiple keys. Create listener, call asynchronous delete and return task monitor.

Requires server version 6.0+

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
C#
Task<BatchResults> Operate(
	BatchPolicy batchPolicy,
	BatchWritePolicy writePolicy,
	CancellationToken token,
	Key[] keys,
	params Operation[] ops
)

Parameters

batchPolicy  BatchPolicy
batch configuration parameters, pass in null for defaults
writePolicy  BatchWritePolicy
write configuration parameters, pass in null for defaults
token  CancellationToken
cancellation token
keys  Key[]
array of unique record identifiers
ops  Operation[]
array of read/write operations on record

Return Value

Task<BatchResults>

Exceptions

AerospikeExceptionif queue is full

See Also