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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedActiveMQDestination(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
Modifier and TypeMethodDescriptionprotected voidbuildFromProperties(Properties props) Set the properties that will represent the instance in JNDIstatic ActiveMQDestinationcreateDestination(String name, ActiveMQDestination.TYPE defaultType) Static helper method for working with destinations.static ActiveMQDestinationcreateDestination(RoutingType routingType, SimpleString address) static ActiveMQQueuecreateQueue(String address) static ActiveMQQueuecreateQueue(String address, String name) static ActiveMQQueuecreateQueue(SimpleString address) static SimpleStringstatic StringcreateQueueNameForSharedSubscription(boolean isDurable, String clientID, String subscriptionName) static SimpleStringcreateQueueNameForSubscription(boolean isDurable, String clientID, String subscriptionName) static ActiveMQTemporaryQueuecreateTemporaryQueue(String address) static ActiveMQTemporaryQueuecreateTemporaryQueue(String address, ActiveMQSession session) static ActiveMQTemporaryQueuecreateTemporaryQueue(ActiveMQSession session) static ActiveMQTemporaryQueuecreateTemporaryQueue(ActiveMQSession session, String prefix) static ActiveMQTemporaryTopiccreateTemporaryTopic(String address) static ActiveMQTemporaryTopiccreateTemporaryTopic(String address, ActiveMQSession session) static ActiveMQTemporaryTopiccreateTemporaryTopic(ActiveMQSession session) static ActiveMQTemporaryTopiccreateTemporaryTopic(ActiveMQSession session, String prefix) static ActiveMQTopiccreateTopic(String address) static ActiveMQTopiccreateTopic(String address, String name) static ActiveMQTopiccreateTopic(SimpleString address) static SimpleStringdecomposeQueueNameForDurableSubscription(String queueName) voiddelete()booleanstatic jakarta.jms.DestinationfromPrefixed1XName(String addr, String name) static ActiveMQDestinationfromPrefixedName(String name) static ActiveMQDestinationfromPrefixedName(String addr, String name) booleangetName()Deprecated.getType()inthashCode()booleanbooleanisQueue()booleanprotected voidpopulateProperties(Properties props) Initialize the instance from properties stored in JNDIvoidsetAddress(String address) voidsetCreated(boolean created) voidsetCreated(String created) voidsetSimpleAddress(String address) voidsetSimpleAddress(SimpleString address) toString()Methods inherited from class org.apache.activemq.artemis.jndi.JNDIStorable
getReference, readObject, writeObject
-
Field Details
-
QUEUE_QUALIFIED_PREFIX
- See Also:
-
TOPIC_QUALIFIED_PREFIX
- See Also:
-
TEMP_QUEUE_QUALIFED_PREFIX
- See Also:
-
TEMP_TOPIC_QUALIFED_PREFIX
- See Also:
-
-
Constructor Details
-
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 Details
-
createDestination
-
createDestination
public static ActiveMQDestination createDestination(String name, ActiveMQDestination.TYPE defaultType) Static helper method for working with destinations. -
fromPrefixedName
-
fromPrefixedName
-
fromPrefixed1XName
-
createQueueNameForSubscription
public static SimpleString createQueueNameForSubscription(boolean isDurable, String clientID, String subscriptionName) -
decomposeQueueNameForDurableSubscription
-
createQueueAddressFromName
-
createTopicAddressFromName
-
createQueue
-
createQueue
-
createQueue
-
createTopic
-
createTopic
-
createTopic
-
createTemporaryQueue
-
createTemporaryQueue
-
createTemporaryQueue
-
createTemporaryTopic
-
createTemporaryQueue
-
createTemporaryTopic
-
createTemporaryTopic
-
createTemporaryTopic
-
setAddress
-
toString
-
setSimpleAddress
-
setSimpleAddress
-
delete
public void delete() throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-
isQueue
public boolean isQueue() -
getAddress
-
getSimpleAddress
-
getQueueAttributes
Deprecated. -
getQueueConfiguration
-
getName
-
isTemporary
public boolean isTemporary() -
getCreated
public boolean getCreated() -
isCreated
public boolean isCreated() -
setCreated
public void setCreated(boolean created) -
setCreated
-
getType
-
equals
-
hashCode
public int hashCode() -
buildFromProperties
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
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.
-