Class: PollNexusTaskQueueResponse
Represents a PollNexusTaskQueueResponse.
Properties
pollerGroupId
pollerGroupId:
string
This poller group ID identifies the owner of the nexus task awaiting for synchronous
response.
Corresponding RespondNexusTaskCompleted and RespondNexusTaskFailed calls should pass this
value for proper response routing.
pollerGroupInfos
pollerGroupInfos:
$Properties[]
The weighted list of poller groups IDs that client should use for future polls to this task queue. Client is expected to:
- Maintain minimum number of pollers no less than the number of groups.
- Try to assign the next poll to a group without any pending polls,
- If every group has some pending polls, assign the next poll to a group randomly according to the weights.
pollerGroupsInfo?
optionalpollerGroupsInfo?:$Properties|null
The weighted, versioned list of poller groups IDs that client should use for future polls to
this task queue. Client should ignore this if it has already applied a snapshot with a
version greater than or equal to poller_groups_info.version. Client is expected to:
- Maintain minimum number of pollers no less than the number of groups.
- Try to assign the next poll to a group without any pending polls,
- If every group has some pending polls, assign the next poll to a group randomly according to the weights.
pollerScalingDecision?
optionalpollerScalingDecision?:$Properties|null
Server-advised information the SDK may use to adjust its poller count.
request?
optionalrequest?:$Properties|null
Embedded request as translated from the incoming frontend request.
taskToken
taskToken:
Uint8Array
An opaque unique identifier for this task for correlating a completion request the embedded request.
Methods
toJSON()
toJSON():
object
Converts this PollNexusTaskQueueResponse to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):PollNexusTaskQueueResponse&$Shape
Creates a new PollNexusTaskQueueResponse instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollNexusTaskQueueResponse & $Shape
PollNexusTaskQueueResponse instance
Call Signature
staticcreate(properties?):PollNexusTaskQueueResponse
Creates a new PollNexusTaskQueueResponse instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollNexusTaskQueueResponse
PollNexusTaskQueueResponse instance
decode()
staticdecode(reader,length?):PollNexusTaskQueueResponse&$Shape
Decodes a PollNexusTaskQueueResponse 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
PollNexusTaskQueueResponse & $Shape
PollNexusTaskQueueResponse
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):PollNexusTaskQueueResponse&$Shape
Decodes a PollNexusTaskQueueResponse message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
PollNexusTaskQueueResponse & $Shape
PollNexusTaskQueueResponse
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 PollNexusTaskQueueResponse message. Does not implicitly temporal.api.workflowservice.v1.PollNexusTaskQueueResponse.verify|verify messages.
Parameters
message
PollNexusTaskQueueResponse message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified PollNexusTaskQueueResponse message, length delimited. Does not implicitly temporal.api.workflowservice.v1.PollNexusTaskQueueResponse.verify|verify messages.
Parameters
message
PollNexusTaskQueueResponse message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):PollNexusTaskQueueResponse
Creates a PollNexusTaskQueueResponse message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PollNexusTaskQueueResponse
PollNexusTaskQueueResponse
toObject()
statictoObject(message,options?):object
Creates a plain object from a PollNexusTaskQueueResponse message. Also converts values to other types if specified.
Parameters
message
PollNexusTaskQueueResponse
PollNexusTaskQueueResponse
options?
IConversionOptions
Conversion options
Returns
object
Plain object