Asynchronously read multiple records for specified keys 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 a single call.
Namespace: Aerospike.ClientIf a key is not found, the record will be null. The policy can be used to specify timeouts.
If a batch request to a node fails, the entire batch is cancelled.
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.2.0.0 (4.2.0)
Syntax
Parameters
- policy
- Type: Aerospike.Client BatchPolicy
generic configuration parameters, pass in null for defaults
- listener
- Type: Aerospike.Client RecordArrayListener
where to send results
- keys
- Type: Aerospike.Client Key
array of unique record identifiers
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if queue is full |
See Also