public static class StoreValue.Builder extends Object
| Constructor and Description |
|---|
StoreValue.Builder(Object value) |
StoreValue.Builder(Object value,
com.fasterxml.jackson.core.type.TypeReference<?> typeReference) |
| Modifier and Type | Method and Description |
|---|---|
StoreValue |
build() |
StoreValue.Builder |
withLocation(Location location) |
StoreValue.Builder |
withNamespace(Namespace namespace) |
<T> StoreValue.Builder |
withOption(StoreValue.Option<T> option,
T value) |
StoreValue.Builder |
withTimeout(int timeout)
Set the Riak-side timeout value.
|
StoreValue.Builder |
withVectorClock(VClock vclock)
Set the vector clock.
|
public StoreValue.Builder(Object value)
public StoreValue.Builder(Object value, com.fasterxml.jackson.core.type.TypeReference<?> typeReference)
public StoreValue.Builder withLocation(Location location)
public StoreValue.Builder withNamespace(Namespace namespace)
public StoreValue.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 <T> StoreValue.Builder withOption(StoreValue.Option<T> option, T value)
public StoreValue.Builder withVectorClock(VClock vclock)
When storing core Java types (HashMap,
ArrayList,String, etc) or non-annotated POJOs this
method allows you to specify the vector clock retrieved from a
prior fetch operation.
vclock - The vector clock to send to Riak.public StoreValue build()
Copyright © 2014. All rights reserved.