Class PulsarTopic

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

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

    • PulsarTopic

      public PulsarTopic()
    • PulsarTopic

      public PulsarTopic(String topicName)
  • Method Details

    • getTopicName

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

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

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

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

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