Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

a Publish Engine for a given session

Hierarchy

  • EventEmitter
    • ServerSidePublishEngine

Implements

  • IServerSidePublishEngine

Index

Constructors

constructor

Properties

isSessionClosed

isSessionClosed: boolean

maxPublishRequestInQueue

maxPublishRequestInQueue: number

Static registry

registry: ObjectRegistry

Accessors

currentMonitoredItemCount

  • get currentMonitoredItemCount(): number
  • Returns number

hasLateSubscriptions

  • get hasLateSubscriptions(): boolean
  • Returns boolean

pendingClosedSubscriptionCount

  • get pendingClosedSubscriptionCount(): number
  • Returns number

pendingPublishRequestCount

  • get pendingPublishRequestCount(): number
  • number of pending PublishRequest available in queue

    Returns number

subscriptionCount

  • get subscriptionCount(): number
  • number of subscriptions

    Returns number

subscriptions

  • get a array of subscription handled by the publish engine.

    Returns Subscription[]

Methods

_on_tick

  • _on_tick(): void
  • Returns void

_purge_dangling_subscription

  • _purge_dangling_subscription(subscriptionId: number): void
  • Parameters

    • subscriptionId: number

    Returns void

_send_response

  • Parameters

    Returns void

_send_response_for_request

  • _send_response_for_request(publishData: PublishData, response: PublishResponse): void
  • Parameters

    Returns void

add_subscription

  • Parameters

    Returns Subscription

cancelPendingPublishRequestBeforeChannelChange

  • cancelPendingPublishRequestBeforeChannelChange(): void
  • Returns void

detach_subscription

  • Parameters

    Returns Subscription

dispose

  • dispose(): void
  • Returns void

findLateSubscriptions

  • Returns Subscription[]

findLateSubscriptionsSortedByAge

  • Returns Subscription[]

getSubscriptionById

  • getSubscriptionById(subscriptionId: string | number): Subscription
  • retrieve a subscription by id.

    Parameters

    • subscriptionId: string | number

    Returns Subscription

    Subscription

onSessionClose

  • onSessionClose(): void
  • Returns void

on_close_subscription

  • on_close_subscription(subscription: IClosedOrTransferredSubscription): void
  • Parameters

    • subscription: IClosedOrTransferredSubscription

    Returns void

process_subscriptionAcknowledgements

send_keep_alive_response

  • send_keep_alive_response(subscriptionId: number, future_sequence_number: number): boolean
  • call by a subscription when no notification message is available after the keep alive delay has expired.

    method

    send_keep_alive_response

    Parameters

    • subscriptionId: number
    • future_sequence_number: number

    Returns boolean

    true if a publish response has been sent

shutdown

  • shutdown(): void
  • Returns void

toString

  • toString(): string
  • Returns string

Generated using TypeDoc