Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NoValueEntry

Implementation of TopicCacheEntry that doesn't cache a value

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

  • Handle a value

    Notifies the streams with the raw CBOR data containing the delta. No new or old values are passed on.

    Parameters

    • received: Uint8Array

      the content as a Uint8Array

    • registry: StreamRegistryImpl

      the stream registry

    Returns void

handleValue

  • Handle a value

    Notifies the streams with the raw CBOR data. No old value is passed on.

    Parameters

    • received: Uint8Array

      the content as a Uint8Array

    • registry: StreamRegistryImpl

      the stream registry

    Returns void

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

  • notifyValueToNewStream(): void
  • Does not notify the streams because we don't have a cached value

    Returns void

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.