public static enum ShardedCounter.CounterStatus extends Enum<ShardedCounter.CounterStatus>
ShardedCounter.CounterStatus in that the API can set a counter into various statuses that a client is not
able to set.| Enum Constant and Description |
|---|
AVAILABLE
This Counter is available to be incremented, decremented, or deleted.
|
CONTRACTING_SHARDS
This Counter is contracting the number of shards it holds internally, and may not be incremented,decremented,
or deleted, or mutated.
|
DELETING
This Counter is in the process of being deleted, and may not be incremented or decremented and its details
may not be changed.
|
EXPANDING_SHARDS
This Counter is expanding the number of shards it holds internally, and may not be incremented,
decremented,or deleted, or mutated.
|
READ_ONLY_COUNT
This Counter is not available to be incremented or decremented, though its details can be updated.
|
RESETTING
This Counter is in the process of having all shard amounts set to zerp, and may not be incremented or
decremented.
|
| Modifier and Type | Method and Description |
|---|---|
static ShardedCounter.CounterStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShardedCounter.CounterStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShardedCounter.CounterStatus AVAILABLE
public static final ShardedCounter.CounterStatus READ_ONLY_COUNT
public static final ShardedCounter.CounterStatus EXPANDING_SHARDS
public static final ShardedCounter.CounterStatus CONTRACTING_SHARDS
public static final ShardedCounter.CounterStatus RESETTING
public static final ShardedCounter.CounterStatus DELETING
public static ShardedCounter.CounterStatus[] values()
for (ShardedCounter.CounterStatus c : ShardedCounter.CounterStatus.values()) System.out.println(c);
public static ShardedCounter.CounterStatus 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 nullCopyright © 2015–2016 Instacount. All rights reserved.