Zum Inhalt springen
Deutsch

JetStreamObjectStoreOptionsBuilder

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:56

new JetStreamObjectStoreOptionsBuilder(): JetStreamObjectStoreOptionsBuilder

JetStreamObjectStoreOptionsBuilder

BrokerOptionsBuilder<JetStreamObjectStoreOptionsType>.constructor

build(): Partial<T>

Defined in: src/util/OptionsBuilder.ts:51

Snapshot the set fields as an independent Partial<T> (own props only).

Partial<T>

BrokerOptionsBuilder.build


withBucket(bucket): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:88

Bucket this actor operates on.

string

this


withCircuitBreaker(failureThreshold, resetMs): this

Defined in: src/io/broker/BrokerOptions.ts:125

Circuit breaker around connect attempts.

number

number

this

BrokerOptionsBuilder.withCircuitBreaker


withCreate(create): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:113

Create the bucket at connect time when missing. Default true.

boolean

this


withDescription(description): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:93

Human-readable bucket description (create-time).

string

this


withMaxObjectBytes(maxObjectBytes): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:108

Largest object body this actor will move, in bytes. Default 1 MiB.

number

this


withName(name): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:83

Client name reported to the server.

string

this


withOutboundBuffer(limit): this

Defined in: src/io/broker/BrokerOptions.ts:130

Outbound buffer size (messages held while disconnected). Default 1000; 0 = fail-fast.

number

this

BrokerOptionsBuilder.withOutboundBuffer


withPassword(password): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:78

Password credential.

string

this


withReconnect(policy): this

Defined in: src/io/broker/BrokerOptions.ts:120

Reconnect policy (or false to disable auto-reconnect).

false | { factor?: number; initialDelayMs?: number; maxAttempts?: number; maxDelayMs?: number; } | undefined

false


{ factor?: number; initialDelayMs?: number; maxAttempts?: number; maxDelayMs?: number; }

number

number

number

Cap on retry attempts. Default: Infinity (retry forever).

number


undefined

this

BrokerOptionsBuilder.withReconnect


withReplicas(replicas): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:103

Replica count (create-time).

number

this


withServers(servers): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:63

NATS server URLs ('nats://localhost:4222' or array).

string | readonly string[]

this


withStorage(storage): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:98

Bucket storage backing (create-time).

"memory" | "file"

this


withToken(token): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:68

Token credential.

string

this


withUser(user): this

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:73

Username credential.

string

this


static create(): JetStreamObjectStoreOptionsBuilder

Defined in: src/io/broker/JetStreamObjectStoreOptions.ts:58

Start a fresh builder. Equivalent to new JetStreamObjectStoreOptionsBuilder().

JetStreamObjectStoreOptionsBuilder