@InterfaceAudience.Public @InterfaceStability.Evolving public enum QueueState extends Enum<QueueState>
Modifier and Type | Method and Description |
---|---|
static QueueState |
getState(String state) |
String |
getStateName() |
String |
toString() |
static QueueState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueueState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueueState STOPPED
public static final QueueState RUNNING
public static final QueueState UNDEFINED
public static QueueState[] values()
for (QueueState c : QueueState.values()) System.out.println(c);
public static QueueState 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 getStateName()
public static QueueState getState(String state)
public String toString()
toString
in class Enum<QueueState>
Copyright © 2015 Apache Software Foundation. All rights reserved.