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

ShardedDaemonProcessOptionsBuilder

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

Defined in: src/cluster/sharding/ShardedDaemonProcessOptions.ts:32

Fluent builder for ShardedDaemonProcessOptionsType. The actorFor factory is a whole-object field passed via a single withActorFor(actorFor).

T

new ShardedDaemonProcessOptionsBuilder<T>(): ShardedDaemonProcessOptionsBuilder<T>

ShardedDaemonProcessOptionsBuilder<T>

OptionsBuilder.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>

OptionsBuilder.build


withActorFor(actorFor): this

Defined in: src/cluster/sharding/ShardedDaemonProcessOptions.ts:49

The daemon actor, chosen per index — gets the stable index (0..numDaemons-1).

(daemonIndex) => ActorClassOrFactory<T>

this


withLivenessIntervalMs(livenessIntervalMs): this

Defined in: src/cluster/sharding/ShardedDaemonProcessOptions.ts:59

Period (ms) for the liveness ping that re-materializes daemons. Default: 30 s; 0 disables.

number

this


withName(name): this

Defined in: src/cluster/sharding/ShardedDaemonProcessOptions.ts:39

Logical name used for the shard type; must be unique per daemon set.

string

this


withNumDaemons(numDaemons): this

Defined in: src/cluster/sharding/ShardedDaemonProcessOptions.ts:44

Total number of daemons to keep running cluster-wide.

number

this


withRole(role): this

Defined in: src/cluster/sharding/ShardedDaemonProcessOptions.ts:54

Only members carrying this role host daemons.

string

this


static create<T>(): ShardedDaemonProcessOptionsBuilder<T>

Defined in: src/cluster/sharding/ShardedDaemonProcessOptions.ts:34

Start a fresh builder. Equivalent to new ShardedDaemonProcessOptionsBuilder<T>().

T

ShardedDaemonProcessOptionsBuilder<T>