Asynchronously read multiple records for specified keys using read operations in one batch call.
Schedule the batch get command with a channel selector and return.
Another thread will process the command and send the results to the listener in multiple unordered calls.
Namespace: Aerospike.ClientEach record result is returned in separate OnRecord() calls. If a key is not found, the record will be null.
If a batch request to a node fails, responses from other nodes will continue to be processed.
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.2.7.0 (4.2.7)
Syntax
Parameters
- policy
- Type: Aerospike.Client BatchPolicy
batch configuration parameters, pass in null for defaults
- listener
- Type: Aerospike.Client RecordSequenceListener
where to send results
- keys
- Type: Aerospike.Client Key
array of unique record identifiers
- operations
- Type: Aerospike.Client Operation
array of read operations on record
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if queue is full |
See Also