AsyncClientDelete(BatchPolicy, BatchDeletePolicy, BatchRecordSequenceListener, Key) Method

Asynchronously delete records for specified keys. Schedule the delete 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+

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public void Delete(
	BatchPolicy batchPolicy,
	BatchDeletePolicy deletePolicy,
	BatchRecordSequenceListener listener,
	Key[] keys
)

Parameters

batchPolicy  BatchPolicy
batch configuration parameters, pass in null for defaults
deletePolicy  BatchDeletePolicy
delete configuration parameters, pass in null for defaults
listener  BatchRecordSequenceListener
where to send results
keys  Key
array of unique record identifiers

Implements

IAsyncClientDelete(BatchPolicy, BatchDeletePolicy, BatchRecordSequenceListener, Key)

Exceptions

AerospikeExceptionif queue is full

See Also