IAsyncClientOperate(WritePolicy, RecordListener, Key, Operation) Method

Asynchronously perform multiple read/write operations on a single key in one batch call. Schedule the operate command with a channel selector and return. Another thread will process the command and send the results to the listener.

An example would be to add an integer value to an existing record and then read the result, all in one database call.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
void Operate(
	WritePolicy policy,
	RecordListener listener,
	Key key,
	params Operation[] ops
)

Parameters

policy  WritePolicy
write configuration parameters, pass in null for defaults
listener  RecordListener
where to send results, pass in null for fire and forget
key  Key
unique record identifier
ops  Operation
database operations to perform

Exceptions

AerospikeExceptionif queue is full

See Also