AsyncClientOperate Method (WritePolicy, RecordListener, Key, Operation)

Aerospike
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.

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

C#
public void Operate(
	WritePolicy policy,
	RecordListener listener,
	Key key,
	params Operation[] ops
)

Parameters

policy
Type: Aerospike.ClientWritePolicy
write configuration parameters, pass in null for defaults
listener
Type: Aerospike.ClientRecordListener
where to send results, pass in null for fire and forget
key
Type: Aerospike.ClientKey
unique record identifier
ops
Type: Aerospike.ClientOperation
database operations to perform

Implements

IAsyncClientOperate(WritePolicy, RecordListener, Key, Operation)
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference