Skip to main content

DeadLetterInfo

@horizon-republic/nestjs-jetstream


@horizon-republic/nestjs-jetstream / DeadLetterInfo

DeadLetterInfo

Defined in: src/interfaces/hooks.interface.ts:184

Context passed to the onDeadLetter callback when a message exhausts all delivery attempts.

Properties​

data​

data: unknown

Defined in: src/interfaces/hooks.interface.ts:188

Decoded message payload.


deliveryCount​

deliveryCount: number

Defined in: src/interfaces/hooks.interface.ts:194

How many times this message was delivered.


error​

error: unknown

Defined in: src/interfaces/hooks.interface.ts:192

The error that caused the last handler failure.


headers​

headers: MsgHdrs | undefined

Defined in: src/interfaces/hooks.interface.ts:190

Message headers (raw NATS MsgHdrs).


stream​

stream: string

Defined in: src/interfaces/hooks.interface.ts:196

The stream this message belongs to.


streamSequence​

streamSequence: number

Defined in: src/interfaces/hooks.interface.ts:198

The stream sequence number.


subject​

subject: string

Defined in: src/interfaces/hooks.interface.ts:186

The NATS subject the message was published to.


timestamp​

timestamp: string

Defined in: src/interfaces/hooks.interface.ts:200

ISO timestamp of the message (derived from msg.info.timestampNanos).