public class ScanPolicyFactoryBean extends ReadPolicyFactoryBean
FactoryBean implementation that exposes the setters necessary to configure a ScanPolicy via XML.OBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
ScanPolicyFactoryBean()
Creates a new
ScanPolicyFactoryBean. |
| Modifier and Type | Method and Description |
|---|---|
com.aerospike.client.policy.ScanPolicy |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setConcurrentNodes(boolean concurrentNodes)
Configures scan requests to be issued in parallel or serially.
|
void |
setFailOnClusterChange(boolean failOnClusterChange)
Configures termination of scan if cluster in fluctuating state.
|
void |
setIncludeBinData(boolean includeBinData)
Indicates if bin data is retrieved.
|
void |
setMaxConcurrentNodes(int maxConcurrentNodes)
Configures the maximum number of concurrent requests to server nodes at any point in time.
|
void |
setScanPercent(int scanPercent)
Configure the percent of data to scan.
|
setMaxRetries, setPriority, setSleepBetweenRetries, setSocketTimeout, setTotalTimeoutpublic ScanPolicyFactoryBean()
ScanPolicyFactoryBean.public void setConcurrentNodes(boolean concurrentNodes)
concurrentNodes - public void setFailOnClusterChange(boolean failOnClusterChange)
failOnClusterChange - public void setIncludeBinData(boolean includeBinData)
includeBinData - public void setMaxConcurrentNodes(int maxConcurrentNodes)
This property is only relevant when concurrentNodes is true. Default (0) is to issue requests to all server nodes in parallel.
maxConcurrentNodes - public void setScanPercent(int scanPercent)
scanPercent - public com.aerospike.client.policy.ScanPolicy getObject()
throws Exception
getObject in interface FactoryBean<com.aerospike.client.policy.Policy>getObject in class ReadPolicyFactoryBeanExceptionpublic boolean isSingleton()
isSingleton in interface FactoryBean<com.aerospike.client.policy.Policy>isSingleton in class ReadPolicyFactoryBeanpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<com.aerospike.client.policy.Policy>getObjectType in class ReadPolicyFactoryBeanCopyright © 2012–2020 Aerospike, Inc. All rights reserved.