Table of Contents

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

DateTimeOffset

ClaimToken

Gets the opaque token that identifies this lease instance.

public string ClaimToken { get; }

Property Value

string

ClaimedUtc

Gets the UTC timestamp when the claim was acquired.

public DateTimeOffset ClaimedUtc { get; }

Property Value

DateTimeOffset

Entry

Gets the claimed outbox entry snapshot.

public GovernanceOutboxEntry Entry { get; }

Property Value

GovernanceOutboxEntry

OutboxEntryId

Gets the stable outbox entry identifier.

public string OutboxEntryId { get; }

Property Value

string

WorkerId

Gets the worker, process, node, or partition owner that acquired the claim.

public string WorkerId { get; }

Property Value

string

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

entry GovernanceOutboxEntry
workerId string
claimToken string
claimedUtc DateTimeOffset
claimExpiresUtc DateTimeOffset

Returns

GovernanceOutboxClaim

IsExpired(DateTimeOffset)

Determines whether the claim lease is expired at the supplied UTC timestamp.

public bool IsExpired(DateTimeOffset utcNow)

Parameters

utcNow DateTimeOffset

Returns

bool