Class GovernanceOutboxClaim
- Namespace
- AsiBackbone.Core.Outbox
- Assembly
- AsiBackbone.Core.dll
Represents a successful claim over a governance outbox entry.
public sealed class GovernanceOutboxClaim
- Inheritance
-
GovernanceOutboxClaim
- Inherited Members
Remarks
A claim proves that a worker acquired a lease before provider emission. It reduces duplicate selection risk for cooperating workers, but it does not provide exactly-once delivery.
Properties
ClaimExpiresUtc
Gets the UTC timestamp when the claim lease expires.
public DateTimeOffset ClaimExpiresUtc { get; }
Property Value
ClaimToken
Gets the opaque token that identifies this lease instance.
public string ClaimToken { get; }
Property Value
ClaimedUtc
Gets the UTC timestamp when the claim was acquired.
public DateTimeOffset ClaimedUtc { get; }
Property Value
Entry
Gets the claimed outbox entry snapshot.
public GovernanceOutboxEntry Entry { get; }
Property Value
OutboxEntryId
Gets the stable outbox entry identifier.
public string OutboxEntryId { get; }
Property Value
WorkerId
Gets the worker, process, node, or partition owner that acquired the claim.
public string WorkerId { get; }
Property Value
Methods
Create(GovernanceOutboxEntry, string, string, DateTimeOffset, DateTimeOffset)
Creates a claim from a claimed entry snapshot.
public static GovernanceOutboxClaim Create(GovernanceOutboxEntry entry, string workerId, string claimToken, DateTimeOffset claimedUtc, DateTimeOffset claimExpiresUtc)
Parameters
entryGovernanceOutboxEntryworkerIdstringclaimTokenstringclaimedUtcDateTimeOffsetclaimExpiresUtcDateTimeOffset
Returns
IsExpired(DateTimeOffset)
Determines whether the claim lease is expired at the supplied UTC timestamp.
public bool IsExpired(DateTimeOffset utcNow)
Parameters
utcNowDateTimeOffset