public static enum LeaderLatch.State extends Enum<LeaderLatch.State>
Modifier and Type | Method and Description |
---|---|
static LeaderLatch.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeaderLatch.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeaderLatch.State LATENT
public static final LeaderLatch.State STARTED
public static final LeaderLatch.State CLOSED
public static LeaderLatch.State[] values()
for (LeaderLatch.State c : LeaderLatch.State.values()) System.out.println(c);
public static LeaderLatch.State 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 © 2011–2023 The Apache Software Foundation. All rights reserved.