Interface ModelConflictResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Decides what the SDK should do after the runtime has rejected and rolled back a model commit.
Returning ModelConflictResolver.Resolution.RETRY only has effect when the runtime marked the conflict retryable and the configured
retry bound has not been exhausted. Throwing an application exception maps the conflict directly to that error.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordImmutable conflict context supplied after runtime rollback.static enumResolver outcome. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelConflictResolverfail()Fails every conflict withModelCommitConflictException.resolve(ModelConflictResolver.Context context) Resolves one rolled-back conflict.static ModelConflictResolverSilently retries conflicts whose commit policy permits retry and whose retry bound is not exhausted.
-
Method Details
-
resolve
Resolves one rolled-back conflict. The synchronous local pipeline invokes the resolver inline; the asynchronous pipeline uses its contextual worker executor, keeping application code off transport callbacks. -
fail
Fails every conflict withModelCommitConflictException. -
retryIfAllowed
Silently retries conflicts whose commit policy permits retry and whose retry bound is not exhausted.
-