Package com.datastax.oss.pulsar.jms
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
Represents a JMS Topic destination. In Pulsar there is no difference between Queue and Topic.
-
Field Summary
Fields inherited from class com.datastax.oss.pulsar.jms.PulsarDestination
queryString, topicName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSameType(String topicName) booleanisQueue()booleanisTopic()toString()Methods inherited from class com.datastax.oss.pulsar.jms.PulsarDestination
equals, extractSubscriptionName, getDestinations, getInternalTopicName, getName, getQueryString, hashCode, isMultiTopic, isRegExp, isVirtualDestination, setName
-
Constructor Details
-
PulsarTopic
public PulsarTopic() -
PulsarTopic
-
-
Method Details
-
getTopicName
- Specified by:
getTopicNamein interfacejavax.jms.Topic- Throws:
javax.jms.JMSException
-
isQueue
public boolean isQueue()- Specified by:
isQueuein classPulsarDestination
-
isTopic
public boolean isTopic()- Specified by:
isTopicin classPulsarDestination
-
createSameType
public PulsarDestination createSameType(String topicName) throws javax.jms.InvalidDestinationException - Overrides:
createSameTypein classPulsarDestination- Throws:
javax.jms.InvalidDestinationException
-
toString
-