Enum Class ExternalizationMode
- All Implemented Interfaces:
Serializable,Comparable<ExternalizationMode>,Constable
Different modes of event externalization.
- Since:
- 2.1
- Author:
- Roland Beisel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExternalizes events via a module listener that sends events to the target after the transaction commits.Externalizes events via the outbox pattern. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalizationModefrom(Environment environment) Looks up theExternalizationModefrom the given environment or usesMODULE_LISTENERas default.static ExternalizationModeReturns the enum constant of this class with the specified name.static ExternalizationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MODULE_LISTENER
Externalizes events via a module listener that sends events to the target after the transaction commits. This is the default behavior. -
OUTBOX
Externalizes events via the outbox pattern. Events are persisted to an outbox table within the same transaction and later processed asynchronously.
-
-
Field Details
-
PROPERTY
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
from
Looks up theExternalizationModefrom the given environment or usesMODULE_LISTENERas default.- Parameters:
environment- must not be null.- Returns:
- will never be null.
-