public static class FetchValue.Builder extends KvBuilderBase<FetchValue>
location, options
Constructor and Description |
---|
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.
|
addOption
public 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
objectbuild
in class KvBuilderBase<FetchValue>
Copyright © 2016. All rights reserved.