AsyncClientOperate(BatchPolicy, BatchWritePolicy, BatchRecordSequenceListener, Key, Operation) Method
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
Requires server version 6.0+
AerospikeClient (in AerospikeClient.dll) Version: 6.0.1
public void Operate(
params Operation ops
IAsyncClientOperate(BatchPolicy, BatchWritePolicy, BatchRecordSequenceListener, Key, Operation)
- batchPolicy BatchPolicy
- batch configuration parameters, pass in null for defaults
- writePolicy BatchWritePolicy
- write configuration parameters, pass in null for defaults
- listener BatchRecordSequenceListener
- where to send results
- keys Key
- array of unique record identifiers
- ops Operation
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.