public static class DeleteValue.Builder extends KvBuilderBase<DeleteValue>
location
Constructor and Description |
---|
Builder(Location location)
Construct a Builder for a DeleteValue command.
|
Modifier and Type | Method and Description |
---|---|
DeleteValue |
build()
Construct a DeleteValue object.
|
<T> DeleteValue.Builder |
withOption(DeleteValue.Option<T> option,
T value)
Add a delete option.
|
DeleteValue.Builder |
withTimeout(int timeout)
Set the Riak-side timeout value.
|
DeleteValue.Builder |
withVClock(VClock vClock)
Specify the VClock to use when deleting the object from Riak.
|
addOption
public Builder(Location location)
location
- the location of the object in Riakpublic DeleteValue.Builder withVClock(VClock vClock)
vClock
- the vclockpublic <T> DeleteValue.Builder withOption(DeleteValue.Option<T> option, T value)
T
- the type required by the optionoption
- the optionvalue
- the value associated with the optionpublic DeleteValue.Builder withTimeout(int timeout)
By default, riak has a 60s timeout for operations. Setting this value will override that default for this operation.
timeout
- the timeout in milliseconds to be sent to riak.public DeleteValue build()
build
in class KvBuilderBase<DeleteValue>
Copyright © 2016. All rights reserved.