public static class DeleteOperation.Builder extends Object
Constructor and Description |
---|
DeleteOperation.Builder(Location location)
Construct a builder for a DeleteOperation.
|
Modifier and Type | Method and Description |
---|---|
DeleteOperation |
build() |
DeleteOperation.Builder |
withDw(int dw)
Set the DW value for this query.
|
DeleteOperation.Builder |
withNVal(int nval)
Set the n_val for this operation.
|
DeleteOperation.Builder |
withPr(int pr)
Set the PR value for this query.
|
DeleteOperation.Builder |
withPw(int pw)
Set the PW value for this query.
|
DeleteOperation.Builder |
withR(int r)
Set the R value for this FetchOperation.
|
DeleteOperation.Builder |
withRw(int rw)
Set the RW value for this query.
|
DeleteOperation.Builder |
withSloppyQuorum(boolean sloppyQuorum)
Set whether to use sloppy_quorum.
|
DeleteOperation.Builder |
withTimeout(int timeout)
Set a timeout for this operation.
|
DeleteOperation.Builder |
withVclock(VClock vclock)
Set the Vclock to be used for this query.
|
DeleteOperation.Builder |
withW(int w)
Set the W value for this query.
|
public DeleteOperation.Builder(Location location)
location
- Location of the object in Riak to deletepublic DeleteOperation.Builder withR(int r)
r
- the R value.public DeleteOperation.Builder withPr(int pr)
pr
- the PR value.public DeleteOperation.Builder withW(int w)
w
- the W value.public DeleteOperation.Builder withDw(int dw)
dw
- the DW value.public DeleteOperation.Builder withPw(int pw)
pw
- the PW value.public DeleteOperation.Builder withRw(int rw)
rw
- the RW value.public DeleteOperation.Builder withVclock(VClock vclock)
vclock
- the last fetched vclock.public DeleteOperation.Builder withTimeout(int timeout)
timeout
- a timeout in milliseconds.public DeleteOperation.Builder withNVal(int nval)
Do not use this unless you understand the ramifications
nval
- the n_val valuepublic DeleteOperation.Builder withSloppyQuorum(boolean sloppyQuorum)
Do not use this unless you understand the ramifications
sloppyQuorum
- true to use sloppy_quorumpublic DeleteOperation build()
Copyright © 2014. All rights reserved.