コンテンツにスキップ
日本語

TcpServerOptionsBuilder

このコンテンツはまだ日本語訳がありません。

Defined in: src/io/broker/TcpServerOptions.ts:45

new TcpServerOptionsBuilder(): TcpServerOptionsBuilder

TcpServerOptionsBuilder

BrokerOptionsBuilder<TcpServerOptionsType>.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


withBindHost(host): this

Defined in: src/io/broker/TcpServerOptions.ts:52

Local bind address. Default '0.0.0.0'.

string

this


withBindPort(port): this

Defined in: src/io/broker/TcpServerOptions.ts:57

Local port. Required; 0 lets the OS pick.

number

this


withCircuitBreaker(failureThreshold, resetMs): this

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

Circuit breaker around connect attempts.

number

number

this

BrokerOptionsBuilder.withCircuitBreaker


withFraming(framing): this

Defined in: src/io/broker/TcpServerOptions.ts:62

Frame extraction strategy, applied per connection. Default { kind: 'bytes' }.

TcpFraming

this


withMaxConnections(max): this

Defined in: src/io/broker/TcpServerOptions.ts:77

Cap on simultaneously accepted connections. Default Infinity.

number

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


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


withTarget(target): this

Defined in: src/io/broker/TcpServerOptions.ts:67

Subscriber for connection events and inbound frames. Required.

ActorRef<TcpServerMessage>

this


withTls(tls): this

Defined in: src/io/broker/TcpServerOptions.ts:72

Serve TLS. Pass the certificate material itself, not a file path.

TlsTransportOptionsType

this


static create(): TcpServerOptionsBuilder

Defined in: src/io/broker/TcpServerOptions.ts:47

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

TcpServerOptionsBuilder