Skip to main content

StreamPosition

@rotorsoft/act-root


@rotorsoft/act-root / act/src / StreamPosition

Type Alias: StreamPosition

StreamPosition = object

Defined in: libs/act/src/types/ports.ts:126

Subscription position for a registered stream.

Streamed by Store.query_streams to power operational dashboards (projection lag, blocked subscriptions, in-flight leases). The shape mirrors what every adapter already tracks on its streams table.

Propertiesโ€‹

atโ€‹

readonly at: number

Defined in: libs/act/src/types/ports.ts:129

Last processed event id watermark (-1 for fresh streams)


blockedโ€‹

readonly blocked: boolean

Defined in: libs/act/src/types/ports.ts:131

True when the stream is blocked by a poison message


errorโ€‹

readonly error: string

Defined in: libs/act/src/types/ports.ts:132

Last error message (empty string when none)


lane?โ€‹

readonly optional lane?: string

Defined in: libs/act/src/types/ports.ts:136

Drain lane bound to the stream (ACT-1103)


leased_by?โ€‹

readonly optional leased_by?: string

Defined in: libs/act/src/types/ports.ts:134

Current lease holder UUID (when leased)


leased_until?โ€‹

readonly optional leased_until?: Date

Defined in: libs/act/src/types/ports.ts:135

Lease expiration timestamp (when leased)


priorityโ€‹

readonly priority: number

Defined in: libs/act/src/types/ports.ts:133

Scheduling priority (default 0). Biases the lagging-frontier claim() ordering โ€” see Store.prioritize.


retryโ€‹

readonly retry: number

Defined in: libs/act/src/types/ports.ts:130

Current retry counter


source?โ€‹

readonly optional source?: string

Defined in: libs/act/src/types/ports.ts:128

Optional source stream filter (for reactions)


streamโ€‹

readonly stream: string

Defined in: libs/act/src/types/ports.ts:127

The subscription target (projection or reaction stream)