public final class WritePolicy extends Policy
Modifier and Type | Field and Description |
---|---|
CommitLevel |
commitLevel
Desired consistency guarantee when committing a transaction on the server.
|
int |
expiration
Record expiration.
|
int |
generation
Expected generation.
|
GenerationPolicy |
generationPolicy
Qualify how to handle record writes based on record generation.
|
RecordExistsAction |
recordExistsAction
Qualify how to handle writes where the record already exists.
|
boolean |
respondAllOps
For client operate(), return a result for every operation.
|
consistencyLevel, maxRetries, priority, replica, sendKey, sleepBetweenRetries, timeout
Constructor and Description |
---|
WritePolicy()
Default constructor.
|
WritePolicy(Policy other)
Copy write policy from another policy.
|
WritePolicy(WritePolicy other)
Copy write policy from another write policy.
|
public RecordExistsAction recordExistsAction
public GenerationPolicy generationPolicy
public CommitLevel commitLevel
public int generation
0
.public int expiration
Expiration values:
public boolean respondAllOps
Some list operations do not return results by default (ListOperation.clear() for example). This can sometimes make it difficult to determine the desired result offset in the returned bin's result list.
Setting respondAllOps to true makes it easier to identify the desired result offset (result offset equals bin's operate sequence). This only makes sense when multiple list operations are used in one operate call and some of those operations do not return results by default.
Default: false
public WritePolicy(WritePolicy other)
public WritePolicy(Policy other)
public WritePolicy()
Copyright © 2012–2015 Aerospike, Inc. All rights reserved.