public static enum InfluxDB.ConsistencyLevel extends Enum<InfluxDB.ConsistencyLevel>
Enum Constant and Description |
---|
ALL
Write succeeds only if write reached all cluster members.
|
ANY
Write succeeds if write reached any cluster members.
|
ONE
Write succeeds if write reached at least one cluster members.
|
QUORUM
Write succeeds only if write reached a quorum of cluster members.
|
Modifier and Type | Method and Description |
---|---|
String |
value()
Get the String value of the ConsistencyLevel.
|
static InfluxDB.ConsistencyLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InfluxDB.ConsistencyLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InfluxDB.ConsistencyLevel ALL
public static final InfluxDB.ConsistencyLevel ANY
public static final InfluxDB.ConsistencyLevel ONE
public static final InfluxDB.ConsistencyLevel QUORUM
public static InfluxDB.ConsistencyLevel[] values()
for (InfluxDB.ConsistencyLevel c : InfluxDB.ConsistencyLevel.values()) System.out.println(c);
public static InfluxDB.ConsistencyLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
Copyright © 2020. All rights reserved.