public static class FetchValue.Builder extends Object
Constructor and Description |
---|
FetchValue.Builder(Location location)
Constructs a builder for a FetchValue operation using the supplied location.
|
Modifier and Type | Method and Description |
---|---|
FetchValue |
build()
Build a
FetchValue object |
<U> FetchValue.Builder |
withOption(FetchValue.Option<U> option,
U value)
Add an optional setting for this command.
|
FetchValue.Builder |
withTimeout(int timeout)
Set the Riak-side timeout value.
|
public FetchValue.Builder(Location location)
location
- the location of the object you want to fetch from Riak.public <U> FetchValue.Builder withOption(FetchValue.Option<U> option, U value)
option
- the optionvalue
- the value for the optionpublic FetchValue.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 FetchValue build()
FetchValue
objectCopyright © 2014. All rights reserved.