Package org.apache.storm.policy
Enum IWaitStrategy.WaitSituation
- java.lang.Object
-
- java.lang.Enum<IWaitStrategy.WaitSituation>
-
- org.apache.storm.policy.IWaitStrategy.WaitSituation
-
- All Implemented Interfaces:
Serializable
,Comparable<IWaitStrategy.WaitSituation>
- Enclosing interface:
- IWaitStrategy
public static enum IWaitStrategy.WaitSituation extends Enum<IWaitStrategy.WaitSituation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACK_PRESSURE_WAIT
BOLT_WAIT
SPOUT_WAIT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IWaitStrategy.WaitSituation
valueOf(String name)
Returns the enum constant of this type with the specified name.static IWaitStrategy.WaitSituation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPOUT_WAIT
public static final IWaitStrategy.WaitSituation SPOUT_WAIT
-
BOLT_WAIT
public static final IWaitStrategy.WaitSituation BOLT_WAIT
-
BACK_PRESSURE_WAIT
public static final IWaitStrategy.WaitSituation BACK_PRESSURE_WAIT
-
-
Method Detail
-
values
public static IWaitStrategy.WaitSituation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IWaitStrategy.WaitSituation c : IWaitStrategy.WaitSituation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IWaitStrategy.WaitSituation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-