public enum SagaCreationPolicy extends Enum<SagaCreationPolicy>
Enum Constant and Description |
---|
ALWAYS
Always create a new Saga, even if one already exists.
|
IF_NONE_FOUND
Only create a new Saga instance if none can be found.
|
NONE
Never create a new Saga instance, even if none exists.
|
Modifier and Type | Method and Description |
---|---|
static SagaCreationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SagaCreationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SagaCreationPolicy NONE
public static final SagaCreationPolicy IF_NONE_FOUND
public static final SagaCreationPolicy ALWAYS
public static SagaCreationPolicy[] values()
for (SagaCreationPolicy c : SagaCreationPolicy.values()) System.out.println(c);
public static SagaCreationPolicy 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 © 2010–2020. All rights reserved.