Class ActiveMQDestination
- java.lang.Object
-
- org.apache.activemq.artemis.jndi.JNDIStorable
-
- org.apache.activemq.artemis.jms.client.ActiveMQDestination
-
- All Implemented Interfaces:
jakarta.jms.Destination,Serializable,Referenceable
- Direct Known Subclasses:
ActiveMQQueue,ActiveMQTopic
public class ActiveMQDestination extends JNDIStorable implements jakarta.jms.Destination, Serializable
ActiveMQ Artemis implementation of a JMS Destination.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActiveMQDestination.TYPE
-
Field Summary
Fields Modifier and Type Field Description static StringQUEUE_QUALIFIED_PREFIXstatic StringTEMP_QUEUE_QUALIFED_PREFIXstatic StringTEMP_TOPIC_QUALIFED_PREFIXstatic StringTOPIC_QUALIFIED_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description protectedActiveMQDestination(String address, String name, ActiveMQDestination.TYPE type, ActiveMQSession session)protectedActiveMQDestination(String address, ActiveMQDestination.TYPE type, ActiveMQSession session)protectedActiveMQDestination(SimpleString address, String name, ActiveMQDestination.TYPE type, ActiveMQSession session)Deprecated.protectedActiveMQDestination(SimpleString address, ActiveMQDestination.TYPE type, ActiveMQSession session)
-
Method Summary
-
Methods inherited from class org.apache.activemq.artemis.jndi.JNDIStorable
getReference, readObject, writeObject
-
-
-
-
Field Detail
-
QUEUE_QUALIFIED_PREFIX
public static final String QUEUE_QUALIFIED_PREFIX
- See Also:
- Constant Field Values
-
TOPIC_QUALIFIED_PREFIX
public static final String TOPIC_QUALIFIED_PREFIX
- See Also:
- Constant Field Values
-
TEMP_QUEUE_QUALIFED_PREFIX
public static final String TEMP_QUEUE_QUALIFED_PREFIX
- See Also:
- Constant Field Values
-
TEMP_TOPIC_QUALIFED_PREFIX
public static final String TEMP_TOPIC_QUALIFED_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActiveMQDestination
protected ActiveMQDestination(String address, ActiveMQDestination.TYPE type, ActiveMQSession session)
-
ActiveMQDestination
protected ActiveMQDestination(SimpleString address, ActiveMQDestination.TYPE type, ActiveMQSession session)
-
ActiveMQDestination
protected ActiveMQDestination(String address, String name, ActiveMQDestination.TYPE type, ActiveMQSession session)
-
ActiveMQDestination
@Deprecated protected ActiveMQDestination(SimpleString address, String name, ActiveMQDestination.TYPE type, ActiveMQSession session)
Deprecated.
-
-
Method Detail
-
createDestination
public static ActiveMQDestination createDestination(RoutingType routingType, SimpleString address)
-
createDestination
public static ActiveMQDestination createDestination(String name, ActiveMQDestination.TYPE defaultType)
Static helper method for working with destinations.
-
fromPrefixedName
public static ActiveMQDestination fromPrefixedName(String name)
-
fromPrefixedName
public static ActiveMQDestination fromPrefixedName(String addr, String name)
-
fromPrefixed1XName
public static jakarta.jms.Destination fromPrefixed1XName(String addr, String name)
-
createQueueNameForSubscription
public static SimpleString createQueueNameForSubscription(boolean isDurable, String clientID, String subscriptionName)
-
createQueueNameForSharedSubscription
public static String createQueueNameForSharedSubscription(boolean isDurable, String clientID, String subscriptionName)
-
decomposeQueueNameForDurableSubscription
public static Pair<String,String> decomposeQueueNameForDurableSubscription(String queueName)
-
createQueueAddressFromName
public static SimpleString createQueueAddressFromName(String name)
-
createTopicAddressFromName
public static SimpleString createTopicAddressFromName(String name)
-
createQueue
public static ActiveMQQueue createQueue(String address)
-
createQueue
public static ActiveMQQueue createQueue(SimpleString address)
-
createQueue
public static ActiveMQQueue createQueue(String address, String name)
-
createTopic
public static ActiveMQTopic createTopic(String address)
-
createTopic
public static ActiveMQTopic createTopic(SimpleString address)
-
createTopic
public static ActiveMQTopic createTopic(String address, String name)
-
createTemporaryQueue
public static ActiveMQTemporaryQueue createTemporaryQueue(String address, ActiveMQSession session)
-
createTemporaryQueue
public static ActiveMQTemporaryQueue createTemporaryQueue(String address)
-
createTemporaryQueue
public static ActiveMQTemporaryQueue createTemporaryQueue(ActiveMQSession session)
-
createTemporaryTopic
public static ActiveMQTemporaryTopic createTemporaryTopic(ActiveMQSession session)
-
createTemporaryQueue
public static ActiveMQTemporaryQueue createTemporaryQueue(ActiveMQSession session, String prefix)
-
createTemporaryTopic
public static ActiveMQTemporaryTopic createTemporaryTopic(ActiveMQSession session, String prefix)
-
createTemporaryTopic
public static ActiveMQTemporaryTopic createTemporaryTopic(String address, ActiveMQSession session)
-
createTemporaryTopic
public static ActiveMQTemporaryTopic createTemporaryTopic(String address)
-
setAddress
public void setAddress(String address)
-
setSimpleAddress
public void setSimpleAddress(SimpleString address)
-
delete
public void delete() throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-
isQueue
public boolean isQueue()
-
getAddress
public String getAddress()
-
getSimpleAddress
public SimpleString getSimpleAddress()
-
getQueueAttributes
@Deprecated public QueueAttributes getQueueAttributes()
Deprecated.
-
getQueueConfiguration
public QueueConfiguration getQueueConfiguration()
-
getName
public String getName()
-
isTemporary
public boolean isTemporary()
-
isCreated
public boolean isCreated()
-
setCreated
public void setCreated(boolean created)
-
getType
public ActiveMQDestination.TYPE getType()
-
buildFromProperties
protected void buildFromProperties(Properties props)
Description copied from class:JNDIStorableSet the properties that will represent the instance in JNDI- Specified by:
buildFromPropertiesin classJNDIStorable- Parameters:
props- The properties to use when building the new isntance.
-
populateProperties
protected void populateProperties(Properties props)
Description copied from class:JNDIStorableInitialize the instance from properties stored in JNDI- Specified by:
populatePropertiesin classJNDIStorable- Parameters:
props- The properties to use when initializing the new instance.
-
-