IAsyncClientOperate Method (BatchPolicy, BatchRecordSequenceListener, ListBatchRecord)

Aerospike
Asynchronously read/write multiple records for specified batch keys in one batch call. This method schedules the get command with a channel selector and returns. Another thread will process the command and send the results to the listener in a single call.

This method allows different namespaces/bins to be requested for each key in the batch. Each record result is returned in separate OnRecord() calls. The returned records are located in the same list.

BatchRecord can be BatchRead, BatchWrite, BatchDelete or BatchUDF.

Requires server version 6.0+

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

C#
void Operate(
	BatchPolicy policy,
	BatchRecordSequenceListener listener,
	List<BatchRecord> records
)

Parameters

policy
Type: Aerospike.ClientBatchPolicy
batch configuration parameters, pass in null for defaults
listener
Type: Aerospike.ClientBatchRecordSequenceListener
where to send results
records
Type: System.Collections.GenericListBatchRecord
list of unique record identifiers and read/write operations
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference