Skip to main content

Class: TaskQueueConfig

taskqueue.v1.TaskQueueConfig

Represents a TaskQueueConfig.

Properties​

fairnessKeysRateLimitDefault​

• Optional fairnessKeysRateLimitDefault: null | $Properties

If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key.


fairnessWeightOverrides​

• fairnessWeightOverrides: Object

If set, overrides the fairness weights for the corresponding fairness keys.

Index signature​

▪ [k: string]: number


queueRateLimit​

• Optional queueRateLimit: null | $Properties

Unless modified, this is the system-defined rate limit.

Methods​

toJSON​

▸ toJSON(): Object

Converts this TaskQueueConfig to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): TaskQueueConfig & $Properties

Creates a new TaskQueueConfig instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

TaskQueueConfig & $Properties

TaskQueueConfig instance

▸ create(properties?): TaskQueueConfig

Parameters​

NameType
properties?$Properties

Returns​

TaskQueueConfig


decode​

▸ decode(reader, length?): TaskQueueConfig & $Properties

Decodes a TaskQueueConfig message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns​

TaskQueueConfig & $Properties

TaskQueueConfig

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): TaskQueueConfig & $Properties

Decodes a TaskQueueConfig message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

TaskQueueConfig & $Properties

TaskQueueConfig

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode​

▸ encode(message, writer?): Writer

Encodes the specified TaskQueueConfig message. Does not implicitly temporal.api.taskqueue.v1.TaskQueueConfig.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesTaskQueueConfig message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified TaskQueueConfig message, length delimited. Does not implicitly temporal.api.taskqueue.v1.TaskQueueConfig.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesTaskQueueConfig message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): TaskQueueConfig

Creates a TaskQueueConfig message from a plain object. Also converts values to their respective internal types.

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

TaskQueueConfig

TaskQueueConfig


toObject​

▸ toObject(message, options?): Object

Creates a plain object from a TaskQueueConfig message. Also converts values to other types if specified.

Parameters​

NameTypeDescription
messageTaskQueueConfigTaskQueueConfig
options?IConversionOptionsConversion options

Returns​

Object

Plain object