Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface StreamConsumerLimits
import { type StreamConsumerLimits } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";

Sets default consumer limits for inactive_threshold and max_ack_pending to consumers of this stream that don't specify specific values. This functionality requires a server 2.10.x or better.

Properties

optional
inactive_threshold: Nanos

The default inactive_threshold applied to consumers. This value is specified in nanoseconds. Pleause use the nanos() function to convert between millis and nanoseconds. Or millis() to convert a nanosecond value to millis.

optional
max_ack_pending: number

The default max_ack_pending applied to consumers of the stream.