Table of Contents

Interface IScheduleExecutionLeaseRenewal

Namespace
Excalibur.Dispatch.Delivery
Assembly
Excalibur.Dispatch.Abstractions.dll

Optional renewable, expiring occurrence ownership on the configured schedule store.

public interface IScheduleExecutionLeaseRenewal : IScheduleExecutionStore, IScheduleStore
Inherited Members
Extension Methods

Remarks

Providers measure expiry using their authoritative clock, at the acquisition or renewal linearization point. Progress and release validate the same ownership tuple. This capability does not guarantee exactly-once handler effects; a handler that ignores cancellation can continue after ownership is lost.

Properties

LeaseDuration

Gets the fixed ownership duration granted by acquisition and successful renewal.

TimeSpan LeaseDuration { get; }

Property Value

TimeSpan

Remarks

The duration must be positive. Local timer cadence is clamped to system timer granularity independently of the authoritative grant; longer durations use bounded timer slices.

Methods

TryRenewExecutionAsync(ScheduleExecutionLease, CancellationToken)

Extends current, unexpired ownership without changing its bearer tuple.

Task<bool> TryRenewExecutionAsync(ScheduleExecutionLease lease, CancellationToken cancellationToken)

Parameters

lease ScheduleExecutionLease

Exact admitted bearer authority.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

True only when current unexpired ownership was extended.

Remarks

Validate the entire tuple at the same atomic boundary as expiry and administrative mutation. False changes nothing. Expired, replaced, released or foreign authority cannot be resurrected. Renewal remains available during progress settlement, including after a progress commit until release.