Class SubscriptionTable<Update>

Track subscriptions in a pubsub protocol. This is primarily useful to pubsub protocol implementors.

Type Parameters

  • Update extends Event

Hierarchy (View Summary)

Constructors

Properties

handleRemoveTopic?: (topic: Name, objKey: object) => void

Callback when the last subscriber of a topic is removed.

Accessors

  • get dimension(): number
  • Number of distinct keys.

    Returns number

  • get size(): number
  • Number of values.

    Returns number

Methods

  • Count values associated with a key.

    Parameters

    Returns number