Enum Class BroadleafSystemEvent.BroadleafEventScopeType
java.lang.Object
java.lang.Enum<BroadleafSystemEvent.BroadleafEventScopeType>
org.broadleafcommerce.common.event.BroadleafSystemEvent.BroadleafEventScopeType
- All Implemented Interfaces:
Serializable,Comparable<BroadleafSystemEvent.BroadleafEventScopeType>,Constable
- Enclosing class:
- BroadleafSystemEvent
public static enum BroadleafSystemEvent.BroadleafEventScopeType
extends Enum<BroadleafSystemEvent.BroadleafEventScopeType>
Constant for how the event should be consumed
- Author:
- Jay Aisenbrey (cja769)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDurable events are always global, but are not removed from the system, allowing them to be consumed across server restarts, or when new nodes enter the cluster (VM level events already exhibit behavior that allow them to execute even after system restarts and do not require additional "durable" classification).All nodes will executeConsume the event locally onlyConsume the event locally only in the same threadConsume the event locally only in the same thread and do not allow auto resumeLimit execution to a single, arbitrary node -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GLOBAL
All nodes will execute -
VM
Limit execution to a single, arbitrary node -
LOCAL
Consume the event locally only -
NON_ASYNC_LOCAL
Consume the event locally only in the same thread -
NON_ASYNC_LOCAL_NO_RESUME
Consume the event locally only in the same thread and do not allow auto resume -
DURABLE_GLOBAL
Durable events are always global, but are not removed from the system, allowing them to be consumed across server restarts, or when new nodes enter the cluster (VM level events already exhibit behavior that allow them to execute even after system restarts and do not require additional "durable" classification). Supports 'playback' of a group of events that need to 'catch up' to events that it might have missed
-
-
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
-