Skip to main content

Class: TimeSkippingInfo

common.v1.TimeSkippingInfo

Describes the current time-skipping state of a workflow execution.

Properties​

currentSessionSkipCount​

• currentSessionSkipCount: number

The number of skips accumulated in the current session, bounded by max_session_skip_count. A new session begins — and this resets to 0 — each time max_session_skip_count is updated.


currentTime​

• Optional currentTime: null | $Properties

Current virtual time of the execution. If the execution hasn't skipped any time yet, it will be the same as wall clock time.


effectiveConfig​

• Optional effectiveConfig: null | $Properties

The current effective time-skipping config, which can differ from the config the user last set: internally-defaulted fields are populated, and enabled reflects whether the execution is still skipping time — e.g. it is set to false once max_session_skip_count is reached, the fast-forward completes, or a client call disables time skipping.


fastForwardInfo​

• Optional fastForwardInfo: null | $Properties

The execution's current fast-forward, if any. Unset if time skipping is enabled without a fast-forward.

Methods​

toJSON​

▸ toJSON(): Object

Converts this TimeSkippingInfo to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): TimeSkippingInfo & $Properties

Creates a new TimeSkippingInfo instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

TimeSkippingInfo & $Properties

TimeSkippingInfo instance

▸ create(properties?): TimeSkippingInfo

Parameters​

NameType
properties?$Properties

Returns​

TimeSkippingInfo


decode​

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

Decodes a TimeSkippingInfo message from the specified reader or buffer.

Parameters​

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

Returns​

TimeSkippingInfo & $Properties

TimeSkippingInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): TimeSkippingInfo & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

TimeSkippingInfo & $Properties

TimeSkippingInfo

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 TimeSkippingInfo message. Does not implicitly temporal.api.common.v1.TimeSkippingInfo.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): TimeSkippingInfo

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

TimeSkippingInfo

TimeSkippingInfo


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageTimeSkippingInfoTimeSkippingInfo
options?IConversionOptionsConversion options

Returns​

Object

Plain object