Class: WorkerConfig
Represents a WorkerConfig.
Properties
autoscalingPollerBehavior?
optionalautoscalingPollerBehavior?:$Properties|null
WorkerConfig autoscalingPollerBehavior.
pollerBehavior?
optionalpollerBehavior?:"simplePollerBehavior"|"autoscalingPollerBehavior"
WorkerConfig pollerBehavior.
simplePollerBehavior?
optionalsimplePollerBehavior?:$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
staticcreate(properties?):WorkerConfig&$Shape
Creates a new WorkerConfig instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkerConfig & $Shape
WorkerConfig instance
Call Signature
staticcreate(properties?):WorkerConfig
Creates a new WorkerConfig instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkerConfig
WorkerConfig instance
decode()
staticdecode(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()
staticdecodeDelimited(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()
staticencode(message,writer?):Writer
Encodes the specified WorkerConfig message. Does not implicitly temporal.api.sdk.v1.WorkerConfig.verify|verify messages.
Parameters
message
WorkerConfig message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified WorkerConfig message, length delimited. Does not implicitly temporal.api.sdk.v1.WorkerConfig.verify|verify messages.
Parameters
message
WorkerConfig message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(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()
statictoObject(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