public class Policy extends Object
Modifier and Type | Field and Description |
---|---|
ConsistencyLevel |
consistencyLevel
How replicas should be consulted in a read operation to provide the desired
consistency guarantee.
|
int |
maxRetries
Maximum number of retries before aborting the current transaction.
|
Priority |
priority
Priority of request relative to other transactions.
|
Replica |
replica
Send read commands to the node containing the key's partition replica type.
|
boolean |
sendKey
Send user defined key in addition to hash digest on both reads and writes.
|
int |
sleepBetweenRetries
Milliseconds to sleep between retries if a transaction fails and the
timeout was not exceeded.
|
int |
timeout
Total transaction timeout in milliseconds for both client and server.
|
public Priority priority
public ConsistencyLevel consistencyLevel
public Replica replica
Default to sending read commands to the node containing the key's master partition.
public int timeout
The timeout is also used as a socket timeout. Retries will not occur if the timeout limit has been reached. Default to no timeout (0).
public int maxRetries
public int sleepBetweenRetries
public boolean sendKey
public Policy(Policy other)
public Policy()
Copyright © 2012–2015 Aerospike, Inc. All rights reserved.