@Value.Immutable public abstract class QueryOptions extends Object implements ParamAdder
Modifier and Type | Field and Description |
---|---|
static QueryOptions |
BLANK |
Constructor and Description |
---|
QueryOptions() |
Modifier and Type | Method and Description |
---|---|
static ImmutableQueryOptions.Builder |
blockMinutes(int minutes,
BigInteger index) |
static ImmutableQueryOptions.Builder |
blockSeconds(int seconds,
BigInteger index) |
ConsistencyMode |
getConsistencyMode() |
abstract Optional<String> |
getDatacenter() |
abstract Optional<BigInteger> |
getIndex() |
abstract Optional<String> |
getNear() |
abstract List<String> |
getNodeMeta() |
List<String> |
getNodeMetaQuery() |
abstract List<String> |
getTag() |
List<String> |
getTagsQuery() |
abstract Optional<String> |
getToken() |
abstract Optional<String> |
getWait() |
boolean |
hasToken() |
boolean |
isBlocking() |
Map<String,Object> |
toQuery() |
public static final QueryOptions BLANK
public abstract Optional<BigInteger> getIndex()
@Value.Default public ConsistencyMode getConsistencyMode()
@Value.Derived public boolean isBlocking()
@Value.Derived public boolean hasToken()
public static ImmutableQueryOptions.Builder blockSeconds(int seconds, BigInteger index)
public static ImmutableQueryOptions.Builder blockMinutes(int minutes, BigInteger index)
public Map<String,Object> toQuery()
toQuery
in interface ParamAdder
Copyright © 2017. All rights reserved.