Package ratpack.exec
Enum ExecInterceptor.ExecType
- java.lang.Object
-
- java.lang.Enum<ExecInterceptor.ExecType>
-
- ratpack.exec.ExecInterceptor.ExecType
-
- All Implemented Interfaces:
Serializable
,Comparable<ExecInterceptor.ExecType>
- Enclosing interface:
- ExecInterceptor
public static enum ExecInterceptor.ExecType extends Enum<ExecInterceptor.ExecType>
The execution type (i.e. type of thread).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecInterceptor.ExecType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExecInterceptor.ExecType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCKING
public static final ExecInterceptor.ExecType BLOCKING
The execution segment is executing on a blocking thread.
-
COMPUTE
public static final ExecInterceptor.ExecType COMPUTE
The execution segment is executing on a compute thread.
-
-
Method Detail
-
values
public static ExecInterceptor.ExecType[] 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 (ExecInterceptor.ExecType c : ExecInterceptor.ExecType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExecInterceptor.ExecType 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
-
-