public abstract static class UpdateDatatype.Builder<T extends UpdateDatatype.Builder<T>> extends Object
Modifier and Type | Method and Description |
---|---|
protected abstract UpdateDatatype |
build() |
protected abstract T |
self() |
T |
withContext(Context context)
Include the context from a previous fetch.
|
<U> T |
withOption(UpdateDatatype.Option<U> option,
U value)
Add an optional setting for this command.
|
T |
withReturnDatatype(boolean returnDatatype)
Return the updated datatype.
|
T |
withTimeout(int timeout)
Set the Riak-side timeout value.
|
public T withContext(Context context)
When updating a previously fetched set or map you generally want to include the context returned from that query with the update.
context
- the Context from a previous fetch.public <U> T withOption(UpdateDatatype.Option<U> option, U value)
option
- the optionvalue
- the value for the optionUpdateDatatype.Option
public T 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 withReturnDatatype(boolean returnDatatype)
By default the datatype update commands are "fire and forget" in that the modified datatype in Riak is not returned. Setting this to true returns the modified datatype in the response.
returnDatatype
- true to return the modified datatype.protected abstract T self()
protected abstract UpdateDatatype build()
Copyright © 2016. All rights reserved.