Options
All
  • Public
  • Public/Protected
  • All
Menu

Default Streaming Options. Uses Faye as the cometd impl.

Hierarchy

  • DefaultStreamingOptions

Implements

Index

Constructors

constructor

  • Constructor for DefaultStreamingOptions

    see

    StatusResult

    Parameters

    • org: Org

      The streaming target org

    • channel: string

      The streaming channel or topic. If the topic is a system topic then api 36.0 is used. System topics are deprecated.

    • streamProcessor: StreamProcessor

      The function called that can process streaming messages.

    Returns DefaultStreamingOptions

Properties

apiVersion

apiVersion: string

channel

channel: string

handshakeTimeout

handshakeTimeout: Time

org

org: Org

streamProcessor

streamProcessor: StreamProcessor

streamingImpl

streamingImpl: StreamingClientIfc

subscribeTimeout

subscribeTimeout: Time

Static DEFAULT_HANDSHAKE_TIMEOUT

DEFAULT_HANDSHAKE_TIMEOUT: Time = new Time(30,TIME_UNIT.SECONDS)

Static DEFAULT_SUBSCRIBE_TIMEOUT

DEFAULT_SUBSCRIBE_TIMEOUT: Time = new Time(3,TIME_UNIT.MINUTES)

Methods

setHandshakeTimeout

  • setHandshakeTimeout(newTime: Time): void
  • Setter for the handshake timeout.

    throws

    An error if the newTime is less than the default time.

    Parameters

    • newTime: Time

      The new handshake timeout

    Returns void

setSubscribeTimeout

  • setSubscribeTimeout(newTime: Time): void
  • Setter for the subscribe timeout.

    throws

    An error if the newTime is less than the default time.

    Parameters

    • newTime: Time

      The new subscribe timeout.

    Returns void