KeepMajorityOptionsBuilder
Este conteúdo não está disponível em sua língua ainda.
Defined in: src/cluster/downing/KeepMajorityOptions.ts:14
Fluent builder for KeepMajorityOptionsType:
new KeepMajority(KeepMajorityOptions.create().withRole('backend'));Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KeepMajorityOptionsBuilder():
KeepMajorityOptionsBuilder
Returns
Section titled “Returns”KeepMajorityOptionsBuilder
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”withRole()
Section titled “withRole()”withRole(
role):this
Defined in: src/cluster/downing/KeepMajorityOptions.ts:21
Only members carrying this role count toward the majority.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():KeepMajorityOptionsBuilder
Defined in: src/cluster/downing/KeepMajorityOptions.ts:16
Start a fresh builder.
Returns
Section titled “Returns”KeepMajorityOptionsBuilder
