AsyncClientQuery Method (QueryPolicy, RecordSequenceListener, Statement)

Aerospike
Asynchronously execute query on all server nodes. The query policy's
maxConcurrentNodes
dictate how many nodes can be queried in parallel. The default is to query all nodes in parallel.

This method schedules the node's query commands with channel selectors and returns. Selector threads will process the commands and send the results to the listener.

Requires server version 6.0+ if using a secondary index query.

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

C#
public void Query(
	QueryPolicy policy,
	RecordSequenceListener listener,
	Statement statement
)

Parameters

policy
Type: Aerospike.ClientQueryPolicy
query configuration parameters, pass in null for defaults
listener
Type: Aerospike.ClientRecordSequenceListener
where to send results
statement
Type: Aerospike.ClientStatement
query definition

Implements

IAsyncClientQuery(QueryPolicy, RecordSequenceListener, Statement)
Exceptions

ExceptionCondition
AerospikeExceptionif query fails
See Also

Reference