Class QueryPolicyFactoryBean

java.lang.Object
org.springframework.data.aerospike.config.ReadPolicyFactoryBean
org.springframework.data.aerospike.config.QueryPolicyFactoryBean
All Implemented Interfaces:
FactoryBean<com.aerospike.client.policy.Policy>

public class QueryPolicyFactoryBean extends ReadPolicyFactoryBean
A FactoryBean implementation that exposes the setters necessary to configure a QueryPolicy via XML.
Author:
Peter Milne
  • Constructor Details

  • Method Details

    • setMaxConcurrentNodes

      public void setMaxConcurrentNodes(int maxConcurrentNodes)
      Configures the 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.
      Parameters:
      maxConcurrentNodes - The maxConcurrentNodes configuration value.
    • setRecordQueueSize

      public void setRecordQueueSize(int recordQueueSize)
      Configure the 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.
      Parameters:
      recordQueueSize - The recordQueueSize configuration value.
    • getObject

      public com.aerospike.client.policy.QueryPolicy getObject() throws Exception
      Specified by:
      getObject in interface FactoryBean<com.aerospike.client.policy.Policy>
      Overrides:
      getObject in class ReadPolicyFactoryBean
      Throws:
      Exception
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface FactoryBean<com.aerospike.client.policy.Policy>
      Overrides:
      isSingleton in class ReadPolicyFactoryBean
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface FactoryBean<com.aerospike.client.policy.Policy>
      Overrides:
      getObjectType in class ReadPolicyFactoryBean