AsyncClientOperate Method (BatchPolicy, BatchWritePolicy, BatchRecordSequenceListener, Key, Operation)

Aerospike
Asynchronously perform read/write operations on multiple keys. Schedule command with a channel selector and return. Another thread will process the command and send the results to the listener.

Each record result is returned in separate OnRecord() calls. If a key is not found, the corresponding result resultCode will be KEY_NOT_FOUND_ERROR.

Requires server version 6.0+

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public void Operate(
	BatchPolicy batchPolicy,
	BatchWritePolicy writePolicy,
	BatchRecordSequenceListener listener,
	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
listener
Type: Aerospike.ClientBatchRecordSequenceListener
where to send results
keys
Type: Aerospike.ClientKey
array of unique record identifiers
ops
Type: Aerospike.ClientOperation
read/write operations to perform. Get is not allowed because it returns a variable number of bins and makes it difficult (sometimes impossible) to lineup operations with results. Instead, use Get(String) for each bin name.

Implements

IAsyncClientOperate(BatchPolicy, BatchWritePolicy, BatchRecordSequenceListener, Key, Operation)
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference