Skip to main content

Class: WorkerConfig

Represents a WorkerConfig.

Properties​

autoscalingPollerBehavior?​

optional autoscalingPollerBehavior?: $Properties | null

WorkerConfig autoscalingPollerBehavior.


pollerBehavior?​

optional pollerBehavior?: "simplePollerBehavior" | "autoscalingPollerBehavior"

WorkerConfig pollerBehavior.


simplePollerBehavior?​

optional simplePollerBehavior?: $Properties | null

WorkerConfig simplePollerBehavior.


workflowCacheSize​

workflowCacheSize: number

WorkerConfig workflowCacheSize.

Methods​

toJSON()​

toJSON(): object

Converts this WorkerConfig to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): WorkerConfig & $Shape

Creates a new WorkerConfig instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

WorkerConfig & $Shape

WorkerConfig instance

Call Signature​

static create(properties?): WorkerConfig

Creates a new WorkerConfig instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

WorkerConfig

WorkerConfig instance


decode()​

static decode(reader, length?): WorkerConfig & $Shape

Decodes a WorkerConfig message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

WorkerConfig & $Shape

WorkerConfig

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): WorkerConfig & $Shape

Decodes a WorkerConfig message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

WorkerConfig & $Shape

WorkerConfig

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified WorkerConfig message. Does not implicitly temporal.api.sdk.v1.WorkerConfig.verify|verify messages.

Parameters​

message​

$Properties

WorkerConfig message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified WorkerConfig message, length delimited. Does not implicitly temporal.api.sdk.v1.WorkerConfig.verify|verify messages.

Parameters​

message​

$Properties

WorkerConfig message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): WorkerConfig

Creates a WorkerConfig message from a plain object. Also converts values to their respective internal types.

Parameters​

object​

Plain object

Returns​

WorkerConfig

WorkerConfig


toObject()​

static toObject(message, options?): object

Creates a plain object from a WorkerConfig message. Also converts values to other types if specified.

Parameters​

message​

WorkerConfig

WorkerConfig

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object