Skip to main content

AckExtensionOptions

@horizon-republic/nestjs-jetstream


@horizon-republic/nestjs-jetstream / AckExtensionOptions

AckExtensionOptions

Defined in: src/interfaces/options.interface.ts:52

Ack extension with its interval and limit spelled out.

Properties​

interval?​

optional interval?: number

Defined in: src/interfaces/options.interface.ts:54

Extension interval in milliseconds. Omit to extend at half of the consumer's ack_wait.


maxDuration?​

optional maxDuration?: number

Defined in: src/interfaces/options.interface.ts:63

How long one message may be kept alive, in milliseconds. Default: 5 minutes.

Past it the transport stops extending and logs a warning; the handler keeps running and the server redelivers the message once ack_wait runs out. Infinity removes the limit.