Class: PollerInfo
Represents a PollerInfo.
Properties
deploymentOptions?
optionaldeploymentOptions?:$Properties|null
Worker deployment options that SDK sent to server.
identity
identity:
string
PollerInfo identity.
lastAccessTime?
optionallastAccessTime?:$Properties|null
PollerInfo lastAccessTime.
ratePerSecond
ratePerSecond:
number
PollerInfo ratePerSecond.
workerVersionCapabilities?
optionalworkerVersionCapabilities?:$Properties|null
If a worker has opted into the worker versioning feature while polling, its capabilities will appear here. Deprecated. Replaced by deployment_options.
Methods
toJSON()
toJSON():
object
Converts this PollerInfo to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):PollerInfo&$Properties
Creates a new PollerInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollerInfo & $Properties
PollerInfo instance
Call Signature
staticcreate(properties?):PollerInfo
Creates a new PollerInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollerInfo
PollerInfo instance
decode()
staticdecode(reader,length?):PollerInfo&$Properties
Decodes a PollerInfo 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
PollerInfo & $Properties
PollerInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):PollerInfo&$Properties
Decodes a PollerInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
PollerInfo & $Properties
PollerInfo
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 PollerInfo message. Does not implicitly temporal.api.taskqueue.v1.PollerInfo.verify|verify messages.
Parameters
message
PollerInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified PollerInfo message, length delimited. Does not implicitly temporal.api.taskqueue.v1.PollerInfo.verify|verify messages.
Parameters
message
PollerInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):PollerInfo
Creates a PollerInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PollerInfo
PollerInfo
toObject()
statictoObject(message,options?):object
Creates a plain object from a PollerInfo message. Also converts values to other types if specified.
Parameters
message
PollerInfo
PollerInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object