Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Destination

Represents a STOMP destination. Depending on the implementation, the message delivery is different. Queue are sending message to only one subscribers, while topics are broadcasting the message to all subscribers.

Implementations must be thread-safe.

Hierarchy

  • Destination

Index

Methods

ack

  • Handles a ACK frame.

    Parameters

    Returns boolean

destination

  • destination(): string
  • Returns string

dispatch

getSubscriptions

  • Gets all subscription ids for the given destination hold by the given client

    Parameters

    Returns string

matches

  • matches(address: string): boolean
  • Checks whether or not the given address matches with the current destination.

    Parameters

    • address: string

    Returns boolean

nack

  • Handles a NACK frame.

    Parameters

    Returns boolean

numberOfSubscriptions

  • numberOfSubscriptions(): number
  • Gets the number of subscriptions attached to the current Destination.

    Returns number

subscribe

unsubscribe

  • Handles a un-subscription request to the current Destination.

    Parameters

    Returns boolean

unsubscribeConnection

  • Removes all subscriptions of the given connection

    Parameters

    Returns Destination

Static bridge

  • Parameters

    Returns Destination

Static queue

  • queue(vertx: Vertx, destination: string): Destination
  • Parameters

    • vertx: Vertx
    • destination: string

    Returns Destination

Static topic

  • topic(vertx: Vertx, destination: string): Destination
  • Parameters

    • vertx: Vertx
    • destination: string

    Returns Destination

Generated using TypeDoc