public interface TargetSystemAuditMarker
TargetSystemAuditMark entries indicating that a
Change has been successfully applied on a transactional Target System.
This repository acts as a local advisory source of truth used during reconciliation with the remote Audit Store (e.g., in the Cloud edition). Its purpose is to reduce false negatives caused by incomplete or delayed remote audit state. Presence of a mark strongly indicates that the change was applied locally; absence is inconclusive and may require manual intervention.
Characteristics:
| Modifier and Type | Method and Description |
|---|---|
void |
clearMark(java.lang.String changeId)
Removes the local audit mark for the given change identifier.
|
java.util.Set<TargetSystemAuditMark> |
listAll()
Returns all known local audit marks for the Target System.
|
void |
mark(TargetSystemAuditMark auditMark)
Creates or updates a local audit mark.
|
default void |
markApplied(ExecutableTask change)
Convenience method to record that the given Change has been applied on the local
Target System.
|
java.util.Set<TargetSystemAuditMark> listAll()
TargetSystemAuditMark.io.flamingock.internal.common.core.error.FlamingockException - if the underlying storage cannot be read.void clearMark(java.lang.String changeId)
This is a hygienic cleanup step that should be invoked after the remote Audit Store has
acknowledged the change, but not critical. It is idempotent: if no mark exists for changeId, the call
completes without error.
changeId - the identifier of the change whose local mark should be removed.io.flamingock.internal.common.core.error.FlamingockException - if the operation fails (e.g., storage unavailable).void mark(TargetSystemAuditMark auditMark)
Implementations should ensure this operation is idempotent. The write operation must participate in the same transaction as the Target System operation that is being confirmed.
auditMark - the mark to persist.io.flamingock.internal.common.core.error.FlamingockException - if the operation fails (e.g., storage unavailable).default void markApplied(ExecutableTask change)
mark(TargetSystemAuditMark) with a mark of type
TargetSystemAuditMarkType.APPLIED.
Implementations should ensure this operation is idempotent. The write operation must participate in the same transaction as the Target System operation that is being confirmed.
change - the applied change to be marked locally.io.flamingock.internal.common.core.error.FlamingockException - if the operation fails (e.g., storage unavailable).