Class PulsarQueue

java.lang.Object
com.datastax.oss.pulsar.jms.PulsarDestination
com.datastax.oss.pulsar.jms.PulsarQueue
All Implemented Interfaces:
javax.jms.Destination, javax.jms.Queue

public final class PulsarQueue extends PulsarDestination implements javax.jms.Queue
Represents a JMS Queue destination. In Pulsar there is no difference between Queue and Topic.
  • Constructor Details

    • PulsarQueue

      public PulsarQueue()
    • PulsarQueue

      public PulsarQueue(String topicName)
  • Method Details

    • getQueueName

      public String getQueueName() throws javax.jms.JMSException
      Specified by:
      getQueueName in interface javax.jms.Queue
      Throws:
      javax.jms.JMSException
    • isQueue

      public boolean isQueue()
      Specified by:
      isQueue in class PulsarDestination
    • createSameType

      public PulsarDestination createSameType(String topicName) throws javax.jms.InvalidDestinationException
      Overrides:
      createSameType in class PulsarDestination
      Throws:
      javax.jms.InvalidDestinationException
    • isTopic

      public boolean isTopic()
      Specified by:
      isTopic in class PulsarDestination
    • toString

      public String toString()
      Specified by:
      toString in interface javax.jms.Queue
      Overrides:
      toString in class Object
    • extractSubscriptionName

      public String extractSubscriptionName() throws javax.jms.InvalidDestinationException
      Extract custom Queue Subscription Name
      Overrides:
      extractSubscriptionName in class PulsarDestination
      Returns:
      the subscription name, if present
      Throws:
      javax.jms.InvalidDestinationException
    • getInternalTopicName

      public String getInternalTopicName()
      return the topic name, without the embedded subscription
      Overrides:
      getInternalTopicName in class PulsarDestination
      Returns: