IAsyncClient.Operate(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
KEY_NOT_FOUND_ERROR.
Requires server version 6.0+
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
void Operate(
BatchPolicy batchPolicy,
BatchWritePolicy writePolicy,
BatchRecordSequenceListener listener,
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
- listener BatchRecordSequenceListener
- where to send results
- keys Key[]
- array of unique record identifiers
- ops Operation[]
- array of read operations on record