Enum Class CompletionTiming
- All Implemented Interfaces:
Serializable,Comparable<CompletionTiming>,Constable
Defines when the completion of an event publication takes place relative to the transactional event listener.
- Since:
- 2.2
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompletes the event publication in a transaction of its own after the listener (and its transaction) has finished.Completes the event publication within the listener's transaction, right before it commits. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionTimingfrom(Environment environment) Looks up theCompletionTimingfrom the given environment or usesIN_LISTENERas default.static CompletionTimingReturns the enum constant of this class with the specified name.static CompletionTiming[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IN_LISTENER
Completes the event publication within the listener's transaction, right before it commits. Completion is atomic with the listener's work. This is the default behavior. -
IN_INTERCEPTOR
Completes the event publication in a transaction of its own after the listener (and its transaction) has finished.
-
-
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 theCompletionTimingfrom the given environment or usesIN_LISTENERas default.- Parameters:
environment- must not be null.- Returns:
- will never be null.
-