Skip to content
English

StableObservationOptionsBuilder

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:91

Fluent builder for StableObservationOptionsType.

const observationOptions = StableObservationOptions.create()
.withSeedProvider(seedProvider)
.withSelfAddress(selfAddress)
.withRequiredContactPoints(3);
const observation = new StableObservation(observationOptions);

new StableObservationOptionsBuilder(): StableObservationOptionsBuilder

StableObservationOptionsBuilder

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


withLog(log): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:133

Where progress and reset lines go. Default: discarded.

(message) => void

this


withMaxWaitMs(ms): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:118

Total budget before the observation throws. Default: 60 000 ms.

number

this


withPollIntervalMs(ms): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:113

Cadence of the lookup() polls. Default: 1 000 ms.

number

this


withRequiredContactPoints(count): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:123

Fewest contact points a stable observation may contain. Default: 1.

number

this


withSeedProvider(seedProvider): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:98

Where the contact points come from.

SeedProvider

this


withSelfAddress(selfAddress): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:103

This node’s advertised address — the value the election orders on.

NodeAddress

this


withSelfElectionGraceMs(ms): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:128

Grace handed to the elected initial seed. Default: 10 000 ms.

number

this


withStableMarginMs(ms): this

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:108

How long the observed set must stay unchanged. Default: 5 000 ms.

number

this


static create(): StableObservationOptionsBuilder

Defined in: src/cluster/bootstrap/StableObservationOptions.ts:93

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

StableObservationOptionsBuilder