com.aerospike.client.policy
Class QueryPolicy

java.lang.Object
  extended by com.aerospike.client.policy.Policy
      extended by 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.
 
Fields inherited from class com.aerospike.client.policy.Policy
maxRetries, priority, sleepBetweenRetries, timeout
 
Constructor Summary
QueryPolicy()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

QueryPolicy

public QueryPolicy()


Copyright © 2012–2014 Aerospike, Inc. All rights reserved.