Class: PollerPoolInfo
Worker-reported state about the poller pool issuing a poll, used by the server to spread poller scaling suggestions across a fleet.
Properties
targetPollers
targetPollers:
number
Number of concurrent poll requests this worker is currently targeting for this task queue and task type. 0 if unknown, such as a poller pool of fixed size.
Methods
toJSON()
toJSON():
object
Converts this PollerPoolInfo to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):PollerPoolInfo&$Properties
Creates a new PollerPoolInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollerPoolInfo & $Properties
PollerPoolInfo instance
Call Signature
staticcreate(properties?):PollerPoolInfo
Creates a new PollerPoolInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollerPoolInfo
PollerPoolInfo instance
decode()
staticdecode(reader,length?):PollerPoolInfo&$Properties
Decodes a PollerPoolInfo 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
PollerPoolInfo & $Properties
PollerPoolInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):PollerPoolInfo&$Properties
Decodes a PollerPoolInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
PollerPoolInfo & $Properties
PollerPoolInfo
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 PollerPoolInfo message. Does not implicitly temporal.api.taskqueue.v1.PollerPoolInfo.verify|verify messages.
Parameters
message
PollerPoolInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified PollerPoolInfo message, length delimited. Does not implicitly temporal.api.taskqueue.v1.PollerPoolInfo.verify|verify messages.
Parameters
message
PollerPoolInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):PollerPoolInfo
Creates a PollerPoolInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
PollerPoolInfo
PollerPoolInfo
toObject()
statictoObject(message,options?):object
Creates a plain object from a PollerPoolInfo message. Also converts values to other types if specified.
Parameters
message
PollerPoolInfo
PollerPoolInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object