Class: TaskQueue
See https://docs.temporal.io/docs/concepts/task-queues/
Properties
kind
kind:
TaskQueueKind
Default: TASK_QUEUE_KIND_NORMAL.
name
name:
string
TaskQueue name.
normalName
normalName:
string
Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of the normal task queue that the sticky worker is running on.
Methods
toJSON()
toJSON():
object
Converts this TaskQueue to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):TaskQueue&$Properties
Creates a new TaskQueue instance using the specified properties.
Parameters
properties?
Properties to set
Returns
TaskQueue & $Properties
TaskQueue instance
Call Signature
staticcreate(properties?):TaskQueue
Creates a new TaskQueue instance using the specified properties.
Parameters
properties?
Properties to set
Returns
TaskQueue
TaskQueue instance
decode()
staticdecode(reader,length?):TaskQueue&$Properties
Decodes a TaskQueue 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
TaskQueue & $Properties
TaskQueue
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):TaskQueue&$Properties
Decodes a TaskQueue message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
TaskQueue & $Properties
TaskQueue
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 TaskQueue message. Does not implicitly temporal.api.taskqueue.v1.TaskQueue.verify|verify messages.
Parameters
message
TaskQueue message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified TaskQueue message, length delimited. Does not implicitly temporal.api.taskqueue.v1.TaskQueue.verify|verify messages.
Parameters
message
TaskQueue message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):TaskQueue
Creates a TaskQueue message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
TaskQueue
TaskQueue
toObject()
statictoObject(message,options?):object
Creates a plain object from a TaskQueue message. Also converts values to other types if specified.
Parameters
message
TaskQueue
TaskQueue
options?
IConversionOptions
Conversion options
Returns
object
Plain object