Class: AutoscalingPollerBehavior
Represents an AutoscalingPollerBehavior.
Properties
initialPollers
initialPollers:
number
This many polls will be attempted initially before scaling kicks in. Must be between
minimum and maximum.
maxPollers
maxPollers:
number
At most this many poll calls will ever be open at once. Must be >= minimum.
minPollers
minPollers:
number
At least this many poll calls will always be attempted (assuming slots are available). Cannot be zero.
Methods
toJSON()
toJSON():
object
Converts this AutoscalingPollerBehavior to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):AutoscalingPollerBehavior&$Properties
Creates a new AutoscalingPollerBehavior instance using the specified properties.
Parameters
properties?
Properties to set
Returns
AutoscalingPollerBehavior & $Properties
AutoscalingPollerBehavior instance
Call Signature
staticcreate(properties?):AutoscalingPollerBehavior
Creates a new AutoscalingPollerBehavior instance using the specified properties.
Parameters
properties?
Properties to set
Returns
AutoscalingPollerBehavior
AutoscalingPollerBehavior instance
decode()
staticdecode(reader,length?):AutoscalingPollerBehavior&$Properties
Decodes an AutoscalingPollerBehavior 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
AutoscalingPollerBehavior & $Properties
AutoscalingPollerBehavior
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):AutoscalingPollerBehavior&$Properties
Decodes an AutoscalingPollerBehavior message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
AutoscalingPollerBehavior & $Properties
AutoscalingPollerBehavior
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 AutoscalingPollerBehavior message. Does not implicitly temporal.api.sdk.v1.WorkerConfig.AutoscalingPollerBehavior.verify|verify messages.
Parameters
message
AutoscalingPollerBehavior message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified AutoscalingPollerBehavior message, length delimited. Does not implicitly temporal.api.sdk.v1.WorkerConfig.AutoscalingPollerBehavior.verify|verify messages.
Parameters
message
AutoscalingPollerBehavior message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):AutoscalingPollerBehavior
Creates an AutoscalingPollerBehavior message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
AutoscalingPollerBehavior
AutoscalingPollerBehavior
toObject()
statictoObject(message,options?):object
Creates a plain object from an AutoscalingPollerBehavior message. Also converts values to other types if specified.
Parameters
message
AutoscalingPollerBehavior
AutoscalingPollerBehavior
options?
IConversionOptions
Conversion options
Returns
object
Plain object