public class ReadPolicyFactoryBean extends Object implements FactoryBean<com.aerospike.client.policy.Policy>
FactoryBean implementation that exposes the setters necessary to configure a ReadPolicy via XML.OBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
ReadPolicyFactoryBean()
Creates a new
ReadPolicyFactoryBean. |
| Modifier and Type | Method and Description |
|---|---|
com.aerospike.client.policy.Policy |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setMaxRetries(int maxRetries)
Configures the maximum number of retries before aborting the current transaction.
|
void |
setPriority(com.aerospike.client.policy.Priority priority)
Configures the priority of request relative to other transactions.
|
void |
setSleepBetweenRetries(int sleepBetweenRetries)
Configures the sleep between retries if a transaction fails and the
timeout was not exceeded.
|
void |
setSocketTimeout(int socketTimeout)
Configures the timeout for each transaction attempt of an operation.
|
void |
setTotalTimeout(int totalTimeout)
Configures the timeout for an operation.
|
public ReadPolicyFactoryBean()
ReadPolicyFactoryBean.public void setSocketTimeout(int socketTimeout)
socketTimeout - public void setTotalTimeout(int totalTimeout)
totalTimeout - public void setMaxRetries(int maxRetries)
public void setSleepBetweenRetries(int sleepBetweenRetries)
public void setPriority(com.aerospike.client.policy.Priority priority)
public com.aerospike.client.policy.Policy getObject()
throws Exception
getObject in interface FactoryBean<com.aerospike.client.policy.Policy>Exceptionpublic boolean isSingleton()
isSingleton in interface FactoryBean<com.aerospike.client.policy.Policy>public Class<?> getObjectType()
getObjectType in interface FactoryBean<com.aerospike.client.policy.Policy>Copyright © 2012–2020 Aerospike, Inc. All rights reserved.