Enum Class AggregateCommitPolicy
- All Implemented Interfaces:
Serializable, Comparable<AggregateCommitPolicy>, Constable
Controls when aggregate changes are committed and whether multiple commits in the same completion phase may run
concurrently.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStart commits at the end of the current message batch and wait for all started commits before the batch completion phase finishes.Start commits after every handler and wait for all started commits at the end of the handler completion phase.Resolve the policy from the active Fluxzero defaults version or explicit application properties.Commit at the end of the current message batch and wait for each commit before continuing.Commit after every handler and wait for that commit before the handler completion phase finishes. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this policy commits at batch completion rather than handler completion.booleanasync()Returns whether this policy allows commits from the same completion phase to run concurrently.static AggregateCommitPolicyReturns the enum constant of this class with the specified name.static AggregateCommitPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Resolve the policy from the active Fluxzero defaults version or explicit application properties. -
SYNC_AFTER_HANDLER
Commit after every handler and wait for that commit before the handler completion phase finishes. -
ASYNC_AFTER_HANDLER
Start commits after every handler and wait for all started commits at the end of the handler completion phase. -
SYNC_AFTER_BATCH
Commit at the end of the current message batch and wait for each commit before continuing. -
ASYNC_AFTER_BATCH
Start commits at the end of the current message batch and wait for all started commits before the batch completion phase finishes.
-
-
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
-
afterBatch
public boolean afterBatch()Returns whether this policy commits at batch completion rather than handler completion. -
async
public boolean async()Returns whether this policy allows commits from the same completion phase to run concurrently.
-