Class: FairnessSpec
Represents a FairnessSpec.
Properties
taskQueueFairnessEnabled
• taskQueueFairnessEnabled: boolean
Flag to enable task queue fairness for the namespace (default: disabled).
Methods
toJSON
▸ toJSON(): Object
Converts this FairnessSpec to JSON.
Returns
Object
JSON object
create
▸ create(properties?): FairnessSpec & $Properties
Creates a new FairnessSpec instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
FairnessSpec instance
▸ create(properties?): FairnessSpec
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): FairnessSpec & $Properties
Decodes a FairnessSpec message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
FairnessSpec
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): FairnessSpec & $Properties
Decodes a FairnessSpec message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
FairnessSpec
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 FairnessSpec message. Does not implicitly temporal.api.cloud.namespace.v1.FairnessSpec.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | FairnessSpec message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified FairnessSpec message, length delimited. Does not implicitly temporal.api.cloud.namespace.v1.FairnessSpec.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | FairnessSpec message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): FairnessSpec
Creates a FairnessSpec message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
FairnessSpec
toObject
▸ toObject(message, options?): Object
Creates a plain object from a FairnessSpec message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | FairnessSpec | FairnessSpec |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object