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'));Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KeepOldestOptionsBuilder():
KeepOldestOptionsBuilder
Returns
Section titled “Returns”KeepOldestOptionsBuilder
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”withDownIfAlone()
Section titled “withDownIfAlone()”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.
Parameters
Section titled “Parameters”downIfAlone?
Section titled “downIfAlone?”boolean = true
Returns
Section titled “Returns”this
withRole()
Section titled “withRole()”withRole(
role):this
Defined in: src/cluster/downing/KeepOldestOptions.ts:27
Only members with this role are eligible to be the “oldest”.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():KeepOldestOptionsBuilder
Defined in: src/cluster/downing/KeepOldestOptions.ts:22
Start a fresh builder.
Returns
Section titled “Returns”KeepOldestOptionsBuilder
