Class DestinationTools
- java.lang.Object
-
- net.timewalker.ffmq4.common.destination.DestinationTools
-
public final class DestinationTools extends Object
Utility functions to create or check destinations names and references
-
-
Constructor Summary
Constructors Constructor Description DestinationTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DestinationRefasRef(javax.jms.Destination destination)Make sure the given destination is a light-weight serializable destination referencestatic javax.jms.QueueasRef(javax.jms.Queue queue)Make sure the given destination is a light-weight serializable destination referencestatic javax.jms.TopicasRef(javax.jms.Topic topic)Make sure the given destination is a light-weight serializable destination referencestatic voidcheckQueueName(String queueName)Check the validity of a queue namestatic voidcheckTopicName(String topicName)Check the validity of a topic namestatic StringgetQueueNameForTopicConsumer(String topicName, String consumerID)Get a queue name for a given topic consumer
-
-
-
Method Detail
-
asRef
public static DestinationRef asRef(javax.jms.Destination destination) throws javax.jms.JMSException
Make sure the given destination is a light-weight serializable destination reference- Throws:
javax.jms.JMSException
-
asRef
public static javax.jms.Queue asRef(javax.jms.Queue queue) throws javax.jms.JMSExceptionMake sure the given destination is a light-weight serializable destination reference- Throws:
javax.jms.JMSException
-
asRef
public static javax.jms.Topic asRef(javax.jms.Topic topic) throws javax.jms.JMSExceptionMake sure the given destination is a light-weight serializable destination reference- Throws:
javax.jms.JMSException
-
getQueueNameForTopicConsumer
public static String getQueueNameForTopicConsumer(String topicName, String consumerID)
Get a queue name for a given topic consumer
-
checkQueueName
public static void checkQueueName(String queueName) throws javax.jms.JMSException
Check the validity of a queue name- Throws:
javax.jms.JMSException
-
checkTopicName
public static void checkTopicName(String topicName) throws javax.jms.JMSException
Check the validity of a topic name- Throws:
javax.jms.JMSException
-
-