Enum Class ModelConflictPolicy
- All Implemented Interfaces:
Serializable, Comparable<ModelConflictPolicy>, Constable
Runtime behavior when an commit-scoped model changed after the commit's
readStateIndex.
Conflict rejection is deliberately optional. ACCEPT preserves Fluxzero's normal single-writer-friendly
behavior: the original event is accepted, while stale derived documents, snapshots, and relationships are rebased
by reapplying it to the latest values of the models actually read by the commit. Rejecting policies roll back the
complete runtime commit; any retry is a new SDK evaluation against freshly loaded models.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccept the original event and silently rebase stale derived state.Inherit from the next broader model-commit scope.Reject a stale commit and let the client map the conflict to an application decision.Reject a stale commit and permit a bounded complete reevaluation against freshly loaded models and relations. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelConflictPolicyresolve(ModelConflictPolicy policy) Resolves a missing wire value to the compatibility default.static ModelConflictPolicyReturns the enum constant of this class with the specified name.static ModelConflictPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Inherit from the next broader model-commit scope. -
ACCEPT
Accept the original event and silently rebase stale derived state. This is the default. -
FAIL
Reject a stale commit and let the client map the conflict to an application decision. -
RETRY
Reject a stale commit and permit a bounded complete reevaluation against freshly loaded models and relations.
-
-
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
-
resolve
Resolves a missing wire value to the compatibility default.
-