Pular para o conteúdo
Português (BR)

KeepOldestOptionsBuilder

Este conteúdo não está disponível em sua língua ainda.

Defined in: src/cluster/downing/KeepOldestOptions.ts:20

Fluent builder for KeepOldestOptionsType:

new KeepOldest(KeepOldestOptions.create().withRole('backend'));

new KeepOldestOptionsBuilder(): KeepOldestOptionsBuilder

KeepOldestOptionsBuilder

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


withDownIfAlone(downIfAlone?): this

Defined in: src/cluster/downing/KeepOldestOptions.ts:32

When true, if the oldest member is unreachable the other side wins. Default false.

boolean = true

this


withRole(role): this

Defined in: src/cluster/downing/KeepOldestOptions.ts:27

Only members with this role are eligible to be the “oldest”.

string

this


static create(): KeepOldestOptionsBuilder

Defined in: src/cluster/downing/KeepOldestOptions.ts:22

Start a fresh builder.

KeepOldestOptionsBuilder