public static class DeleteValue.Builder extends Object
Constructor and Description |
---|
DeleteValue.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.
|
public DeleteValue.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()
Copyright © 2014. All rights reserved.