Package com.datastax.oss.pulsar.jms
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
Represents a JMS Queue 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) Extract custom Queue Subscription Namereturn the topic name, without the embedded subscriptionbooleanisQueue()booleanisTopic()toString()Methods inherited from class com.datastax.oss.pulsar.jms.PulsarDestination
equals, getDestinations, getName, getQueryString, hashCode, isMultiTopic, isRegExp, isVirtualDestination, setName
-
Constructor Details
-
PulsarQueue
public PulsarQueue() -
PulsarQueue
-
-
Method Details
-
getQueueName
- Specified by:
getQueueNamein interfacejavax.jms.Queue- Throws:
javax.jms.JMSException
-
isQueue
public boolean isQueue()- Specified by:
isQueuein classPulsarDestination
-
createSameType
public PulsarDestination createSameType(String topicName) throws javax.jms.InvalidDestinationException - Overrides:
createSameTypein classPulsarDestination- Throws:
javax.jms.InvalidDestinationException
-
isTopic
public boolean isTopic()- Specified by:
isTopicin classPulsarDestination
-
toString
-
extractSubscriptionName
Extract custom Queue Subscription Name- Overrides:
extractSubscriptionNamein classPulsarDestination- Returns:
- the subscription name, if present
- Throws:
javax.jms.InvalidDestinationException
-
getInternalTopicName
return the topic name, without the embedded subscription- Overrides:
getInternalTopicNamein classPulsarDestination- Returns:
-