com.aerospike.client.policy
Class QueryPolicy
java.lang.Object
com.aerospike.client.policy.Policy
com.aerospike.client.policy.QueryPolicy
public class QueryPolicy
- extends Policy
Container object for policy attributes used in query operations.
Field Summary |
int |
maxConcurrentNodes
Maximum number of concurrent requests to server nodes at any point in time. |
int |
recordQueueSize
Number of records to place in queue before blocking. |
maxConcurrentNodes
public int maxConcurrentNodes
- Maximum number of concurrent requests to server nodes at any point in time.
If there are 16 nodes in the cluster and maxConcurrentNodes is 8, then queries
will be made to 8 nodes in parallel. When a query completes, a new query will
be issued until all 16 nodes have been queried.
Default (0) is to issue requests to all server nodes in parallel.
recordQueueSize
public int recordQueueSize
- Number of records to place in queue before blocking.
Records received from multiple server nodes will be placed in a queue.
A separate thread consumes these records in parallel.
If the queue is full, the producer threads will block until records are consumed.
QueryPolicy
public QueryPolicy()
Copyright © 2012–2014 Aerospike, Inc. All rights reserved.