Skip to main content

Class: PollerInfo

Represents a PollerInfo.

Properties​

deploymentOptions?​

optional deploymentOptions?: $Properties | null

Worker deployment options that SDK sent to server.


identity​

identity: string

PollerInfo identity.


lastAccessTime?​

optional lastAccessTime?: $Properties | null

PollerInfo lastAccessTime.


ratePerSecond​

ratePerSecond: number

PollerInfo ratePerSecond.


workerVersionCapabilities?​

optional workerVersionCapabilities?: $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​

static create(properties?): PollerInfo & $Properties

Creates a new PollerInfo instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

PollerInfo & $Properties

PollerInfo instance

Call Signature​

static create(properties?): PollerInfo

Creates a new PollerInfo instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

PollerInfo

PollerInfo instance


decode()​

static decode(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()​

static decodeDelimited(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()​

static encode(message, writer?): Writer

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

Parameters​

message​

$Properties

PollerInfo message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

PollerInfo message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(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()​

static toObject(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