public static final class UpdateCounter.Builder extends UpdateDatatype.Builder<UpdateCounter.Builder>
Constructor and Description |
---|
UpdateCounter.Builder(Location location,
CounterUpdate update)
Construct a Builder for an UpdateCounter command.
|
UpdateCounter.Builder(Namespace namespace,
CounterUpdate update)
Constructs a builder for an UpdateCounter command with only a Namespace.
|
Modifier and Type | Method and Description |
---|---|
UpdateCounter |
build()
Construct the UpdateCounter command.
|
protected UpdateCounter.Builder |
self() |
withContext, withOption, withReturnDatatype, withTimeout
public UpdateCounter.Builder(Location location, CounterUpdate update)
location
- the location of the counter in Riak.update
- the update to apply to the counter.public UpdateCounter.Builder(Namespace namespace, CounterUpdate update)
By providing only a Namespace with the update, Riak will create the counter, generate the key, and return it in the response.
namespace
- the namespace to create the datatype.update
- the CounterUpdate to applyUpdateDatatype.Response.getGeneratedKey()
public UpdateCounter build()
build
in class UpdateDatatype.Builder<UpdateCounter.Builder>
protected UpdateCounter.Builder self()
self
in class UpdateDatatype.Builder<UpdateCounter.Builder>
Copyright © 2014. All rights reserved.