Table of Contents

Property InactiveThreshold

Namespace
NATS.Client.JetStream
Assembly
NATS.Client.JetStream.dll

InactiveThreshold

A duration instructing the server to clean up the consumer once the deliver subject has no interest for that amount of time.

public TimeSpan? InactiveThreshold { get; init; }

Property Value

TimeSpan?

Remarks

If not set, ephemeral consumers (no Name or DurableName) are automatically deleted by the server roughly 5 seconds after the deliver subject loses interest (for example when the client unsubscribes or disconnects for longer than the threshold). Durable consumers are never deleted automatically unless this value is set. Set to Zero to explicitly disable the deletion of a durable consumer.