public final class FetchCounter extends FetchDatatype<RiakCounter,FetchCounter.Response,Location>
Namespace ns = new Namespace("my_type", "my_bucket");
Location loc = new Location(ns, "my_key");
FetchCounter fc = new FetchCounter.Builder(loc).build();
FetchCounter.Response resp = client.execute(fc);
Long counter = resp.getDatatype().view();
Modifier and Type | Class and Description |
---|---|
static class |
FetchCounter.Builder
Builder used to construct a FetchCounter command.
|
static class |
FetchCounter.Response
Response from a FetchCounter command.
|
FetchDatatype.Option<T>
Modifier and Type | Method and Description |
---|---|
protected RiakFuture<FetchCounter.Response,Location> |
executeAsync(RiakCluster cluster) |
RiakCounter |
extractDatatype(RiakDatatype element) |
buildCoreOperation, withOption
execute
protected final RiakFuture<FetchCounter.Response,Location> executeAsync(RiakCluster cluster)
executeAsync
in class RiakCommand<FetchCounter.Response,Location>
public RiakCounter extractDatatype(RiakDatatype element)
extractDatatype
in class FetchDatatype<RiakCounter,FetchCounter.Response,Location>
Copyright © 2016. All rights reserved.