Перейти к содержимому
Русский

DeadLetterEntry

Это содержимое пока не доступно на вашем языке.

DeadLetterEntry = object

Defined in: src/deadletters/DeadLetterEntry.ts:44

One captured dead letter, as DeadLetterQueue.list returns it.

readonly id: string

Defined in: src/deadletters/DeadLetterEntry.ts:46

Stable identity, assigned at capture and preserved across a restart.


readonly payload: DeadLetterPayload

Defined in: src/deadletters/DeadLetterEntry.ts:53


readonly recipientPath: string

Defined in: src/deadletters/DeadLetterEntry.ts:50

Path of the actor the message failed to reach.


readonly replayCount: number

Defined in: src/deadletters/DeadLetterEntry.ts:64

How many times this letter has already been replayed and come back.

Not a diagnostic afterthought: a replayed message that fails again returns to the queue, and without carrying the count forward it would arrive as a new entry with a new id, so an operator retrying a poison message would grow the queue one entry per attempt while every individual retry looked like a first one. maxReplays is checked against this.


readonly senderPath: string | null

Defined in: src/deadletters/DeadLetterEntry.ts:52

Path of the sender, or null when the send carried none.


readonly timestampMs: number

Defined in: src/deadletters/DeadLetterEntry.ts:48

Wall-clock capture time, in epoch milliseconds.