Skip to main content
Defined in: durability/types.ts:121 Options of OutboxJournal.claimDue.

Extends

Properties

owner

Defined in: durability/types.ts:91 Who takes the lease.

Inherited from

ClaimOptions.owner

leaseMs

Defined in: durability/types.ts:93 Lease duration in ms.

Inherited from

ClaimOptions.leaseMs

now

Defined in: durability/types.ts:95 Current time (epoch ms).

Inherited from

ClaimOptions.now

limit

Defined in: durability/types.ts:105 Max records to claim.

Inherited from

ClaimOptions.limit

reclaimOwn?

Defined in: durability/types.ts:111 Also take records leased by owner itself whose lease has not expired yet: a restarted process with a stable instanceId reclaims what its previous incarnation left in flight, without waiting for the lease to expire.

Inherited from

ClaimOptions.reclaimOwn

partitions?

Defined in: durability/types.ts:113 Only claim records whose partition (inbox) or chat (outbox) passes this filter (multi-replica ownership).

Parameters

Returns

boolean

Inherited from

ClaimOptions.partitions

reclaimOwnBefore?

Defined in: durability/types.ts:129 With reclaimOwn: re-claim an own sending record only when its lease ends before this time (epoch ms). A restarted replica’s first sweep passes recoveredAt + leaseMs: the leases its dead incarnation took end earlier, the ones it took itself since then end later, so it never steals a send it is making (which would leave that send’s completion with a superseded fencing token). A journal that ignores it re-claims every own lease.