Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimeSeriesCacheEntry

Extends DatatypeCacheEntry to handle time series events with a given data type

Hierarchy

Index

Constructors

constructor

Methods

addStream

  • Add a new stream

    If this is the first stream, any fallback streams will be notified of an unsubscription and will not receive any more updates

    throws

    an InvalidDataError if any value received is incompatible with the data type or does not represent a valid value.

    Parameters

    Returns void

getTopicPath

  • getTopicPath(): string
  • Get the topic path

    Returns string

    the topic path

getTopicSpecification

handleDelta

handleValue

Protected notifyDelta

  • notifyDelta(oldContent: Uint8Array | null, content: Uint8Array, delta: BinaryDelta | null, oldValue: any, newValue: any, registry: StreamRegistryImpl): void
  • Notify a stream of a delta event

    Parameters

    • oldContent: Uint8Array | null

      the buffer containing the old content

    • content: Uint8Array

      the content as a Uint8Array

    • delta: BinaryDelta | null

      the binary delta

    • oldValue: any

      the old value of the topic

    • newValue: any

      the new value of the topic

    • registry: StreamRegistryImpl

      the stream registry

    Returns void

notifyInitialSubscription

notifyUnsubscription

Protected notifyValue

  • notifyValue(oldContent: Uint8Array | null, content: Uint8Array, oldValue: any, newValue: any, registry: StreamRegistryImpl): void
  • Notify a stream of a new value

    Parameters

    • oldContent: Uint8Array | null

      the buffer containing the old content

    • content: Uint8Array

      the content as a Uint8Array

    • oldValue: any

      the old value of the topic

    • newValue: any

      the new value of the topic

    • registry: StreamRegistryImpl

      the stream registry

    Returns void

notifyValueToNewStream

proxies

  • Get the stream adapters

    If there are no streams in this entry, this will return the fallback streams that match the topic details

    Parameters

    Returns StreamAdapter[]

removeAllStreams

  • removeAllStreams(): void
  • Remove all streams

    No notifications will be sent

    Returns void

removeStream

  • Remove a stream

    If this was the last stream in the entry, any fallback streams will be notified of a subscription and will receive value and delta updates.

    Parameters

    Returns void

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.