JetStreamActorSettings
Defined in: src/io/broker/JetStreamActor.ts:148
Common settings every broker actor accepts on top of its protocol-
specific options. Subclasses extend this interface with their own
required fields (e.g. brokerUrl, topics).
Extends
Section titled “Extends”Properties
Section titled “Properties”ackTimeoutMs?
Section titled “ackTimeoutMs?”
readonlyoptionalackTimeoutMs?:number
Defined in: src/io/broker/JetStreamActor.ts:168
Max time the manual-ack pump waits for a ack/nak/term
before giving up on a message and rejecting internally
(kafkajs-style failure). Default = consumer.ackWaitMs ?? 30s.
circuitBreaker?
Section titled “circuitBreaker?”
readonlyoptionalcircuitBreaker?:object
Defined in: src/io/broker/BrokerSettings.ts:28
Optional circuit-breaker around connectImpl. After
failureThreshold consecutive failed connect attempts the breaker
opens for resetMs and rejects new attempts immediately.
failureThreshold
Section titled “failureThreshold”
readonlyfailureThreshold:number
resetMs
Section titled “resetMs”
readonlyresetMs:number
Inherited from
Section titled “Inherited from”BrokerCommonSettings.circuitBreaker
consumer?
Section titled “consumer?”
readonlyoptionalconsumer?:JetStreamConsumerConfig
Defined in: src/io/broker/JetStreamActor.ts:160
Consumer config — required to start a subscription.
readonlyoptionalname?:string
Defined in: src/io/broker/JetStreamActor.ts:156
Optional client name.
outboundBuffer?
Section titled “outboundBuffer?”
readonlyoptionaloutboundBuffer?:number
Defined in: src/io/broker/BrokerSettings.ts:41
Maximum number of outbound messages buffered while the connection
is connecting or disconnected. When the buffer is full the
oldest message is dropped (FIFO eviction) and a
BrokerBufferOverflow event is published. Default: 1000. Set
to 0 to fail-fast (publish a BrokerNotConnected event and drop
the message).
Inherited from
Section titled “Inherited from”BrokerCommonSettings.outboundBuffer
password?
Section titled “password?”
readonlyoptionalpassword?:string
Defined in: src/io/broker/JetStreamActor.ts:154
reconnect?
Section titled “reconnect?”
readonlyoptionalreconnect?:false| {factor?:number;initialDelayMs?:number;maxAttempts?:number;maxDelayMs?:number; }
Defined in: src/io/broker/BrokerSettings.ts:15
Reconnect strategy applied when the underlying connection drops or
connectImpl throws. Default: exponential backoff starting at
200ms, doubling, capped at 30s, infinite attempts. Set to
false to disable auto-reconnect (one-shot connections).
Union Members
Section titled “Union Members”false
Type Literal
Section titled “Type Literal”{ factor?: number; initialDelayMs?: number; maxAttempts?: number; maxDelayMs?: number; }
factor?
Section titled “factor?”
readonlyoptionalfactor?:number
initialDelayMs?
Section titled “initialDelayMs?”
readonlyoptionalinitialDelayMs?:number
maxAttempts?
Section titled “maxAttempts?”
readonlyoptionalmaxAttempts?:number
Cap on retry attempts. Default: Infinity (retry forever).
maxDelayMs?
Section titled “maxDelayMs?”
readonlyoptionalmaxDelayMs?:number
Inherited from
Section titled “Inherited from”BrokerCommonSettings.reconnect
servers?
Section titled “servers?”
readonlyoptionalservers?:string| readonlystring[]
Defined in: src/io/broker/JetStreamActor.ts:150
NATS server URLs.
stream?
Section titled “stream?”
readonlyoptionalstream?:JetStreamStreamConfig
Defined in: src/io/broker/JetStreamActor.ts:158
Stream lifecycle config — set when this actor owns the stream.
target?
Section titled “target?”
readonlyoptionaltarget?:ActorRef<JetStreamMessage>
Defined in: src/io/broker/JetStreamActor.ts:162
Actor receiving every consumed message.
token?
Section titled “token?”
readonlyoptionaltoken?:string
Defined in: src/io/broker/JetStreamActor.ts:152
Optional credentials.
readonlyoptionaluser?:string
Defined in: src/io/broker/JetStreamActor.ts:153