public static enum LRA.Type extends Enum<LRA.Type>
| Enum Constant and Description |
|---|
MANDATORY
If called outside a transaction context, the method call will return
with a 412 Precondition Failed HTTP status code
If called inside a transaction context the bean method execution will
then continue within that context.
|
NEVER
If called outside a LRA context the managed bean method execution
must then continue outside a LRA context.
|
NOT_SUPPORTED
The bean method is executed without a LRA context.
|
REQUIRED
If called outside a LRA context a JAX-RS filter will begin a new
LRA for the duration of the method call and when the call completes
another JAX-RS filter will complete the LRA.
|
REQUIRES_NEW
If called outside a LRA context a JAX-RS filter will begin a new
LRA for the duration of the method call and when the call completes
another JAX-RS filter will complete the LRA.
|
SUPPORTS
If called outside a LRA context the bean method execution
must then continue outside a LRA context.
|
| Modifier and Type | Method and Description |
|---|---|
static LRA.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LRA.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LRA.Type REQUIRED
public static final LRA.Type REQUIRES_NEW
public static final LRA.Type MANDATORY
public static final LRA.Type SUPPORTS
public static final LRA.Type NOT_SUPPORTED
public static final LRA.Type NEVER
412 Precondition Failed HTTP status code is returned
to the caller.public static LRA.Type[] values()
for (LRA.Type c : LRA.Type.values()) System.out.println(c);
public static LRA.Type 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 © 2018 Eclipse Foundation. All rights reserved.