public static class DtUpdateOperation.Builder extends Object
| Constructor and Description |
|---|
Builder(Location location)
Construct a builder for a DtUpdateOperation.
|
Builder(Namespace namespace) |
| Modifier and Type | Method and Description |
|---|---|
DtUpdateOperation |
build() |
DtUpdateOperation.Builder |
withContext(BinaryValue ctx)
Set the context for this operation.
|
DtUpdateOperation.Builder |
withDw(int dw)
Set the DW value for this DtUpdateOperation.
|
DtUpdateOperation.Builder |
withNVal(int nval)
Set the n_val value for this operation.
|
DtUpdateOperation.Builder |
withOp(CrdtOp op)
Add an update op to this operation
|
DtUpdateOperation.Builder |
withPw(int pw)
Set the PW value for this DtUpdateOperation.
|
DtUpdateOperation.Builder |
withReturnBody(boolean returnBody)
Return the object after storing (including any siblings).
|
DtUpdateOperation.Builder |
withSloppyQuorum(boolean sloppyQuorum)
Set whether to use sloppy_quorum.
|
DtUpdateOperation.Builder |
withTimeout(int timeout)
Set a timeout for this operation.
|
DtUpdateOperation.Builder |
withW(int w)
Set the W value for this DtUpdateOperation.
|
public Builder(Location location)
location - The location of the object in Riak.public Builder(Namespace namespace)
public DtUpdateOperation.Builder withContext(BinaryValue ctx)
ctx - a context from a previous fetch operation.public DtUpdateOperation.Builder withW(int w)
w - the W value.public DtUpdateOperation.Builder withDw(int dw)
dw - the DW value.public DtUpdateOperation.Builder withPw(int pw)
pw - the PW value.public DtUpdateOperation.Builder withReturnBody(boolean returnBody)
returnBody - true to return the object.public DtUpdateOperation.Builder withTimeout(int timeout)
timeout - a timeout in milliseconds.public DtUpdateOperation.Builder withNVal(int nval)
Do not use this unless you understand the ramifications
nval - the n_val valuepublic DtUpdateOperation.Builder withSloppyQuorum(boolean sloppyQuorum)
Do not use this unless you understand the ramifications
sloppyQuorum - true to use sloppy_quorumpublic DtUpdateOperation build()
public DtUpdateOperation.Builder withOp(CrdtOp op)
op - the updateCopyright © 2016. All rights reserved.