public enum InterceptPhase extends Enum<InterceptPhase>
Interceptor
classes implement the Ordered
interface
in order to control the order of execution when multiple interceptors are present.
This class provides a set of common constants for typical phases used by interceptors thus making it easier to position an interceptor in the correct phase.
Enum Constant and Description |
---|
ASYNC
Async phase of execution.
|
CACHE
Caching phase of execution.
|
RETRY
Retry phase of execution.
|
TRACE
Trace phase of execution.
|
TRANSACTION
Transaction phase of execution.
|
VALIDATE
Validation phase of execution.
|
Modifier and Type | Method and Description |
---|---|
int |
getPosition() |
static InterceptPhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InterceptPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InterceptPhase VALIDATE
public static final InterceptPhase CACHE
public static final InterceptPhase TRACE
public static final InterceptPhase RETRY
public static final InterceptPhase ASYNC
public static final InterceptPhase TRANSACTION
public static InterceptPhase[] values()
for (InterceptPhase c : InterceptPhase.values()) System.out.println(c);
public static InterceptPhase 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 int getPosition()