@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 |
blockMinutes(int minutes,
String hash) |
static ImmutableQueryOptions.Builder |
blockSeconds(int seconds,
BigInteger index) |
static ImmutableQueryOptions.Builder |
blockSeconds(int seconds,
String hash) |
ConsistencyMode |
getConsistencyMode() |
abstract Optional<String> |
getDatacenter() |
abstract Optional<String> |
getHash() |
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 static ImmutableQueryOptions.Builder blockSeconds(int seconds, String hash)
public static ImmutableQueryOptions.Builder blockMinutes(int minutes, String hash)
public Map<String,Object> toQuery()
toQuery in interface ParamAdderCopyright © 2019. All rights reserved.