LeaseMajorityOptionsBuilder
このコンテンツはまだ日本語訳がありません。
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:34
Fluent builder for LeaseMajorityOptionsType:
new LeaseMajority( LeaseMajorityOptions.create() .withLease(kubernetesLease) .withAcquireTimeoutMs(5_000),);Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LeaseMajorityOptionsBuilder():
LeaseMajorityOptionsBuilder
Returns
Section titled “Returns”LeaseMajorityOptionsBuilder
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”build()
Section titled “build()”build():
Partial<T>
Defined in: src/util/OptionsBuilder.ts:51
Snapshot the set fields as an independent Partial<T> (own props only).
Returns
Section titled “Returns”Partial<T>
Inherited from
Section titled “Inherited from”withAcquireTimeoutMs()
Section titled “withAcquireTimeoutMs()”withAcquireTimeoutMs(
ms):this
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:46
Hard ceiling on a single acquire() attempt in ms. Default 5 s.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”this
withLease()
Section titled “withLease()”withLease(
lease):this
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:41
External arbiter lease — both sides of a partition contend for it.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
withRole()
Section titled “withRole()”withRole(
role):this
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:51
Only members carrying this role count toward the majority.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():LeaseMajorityOptionsBuilder
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:36
Start a fresh builder.
Returns
Section titled “Returns”LeaseMajorityOptionsBuilder
