Package org.apache.qpid.jms
Class JmsTemporaryDestination
java.lang.Object
org.apache.qpid.jms.jndi.JNDIStorable
org.apache.qpid.jms.JmsDestination
org.apache.qpid.jms.JmsTemporaryDestination
- All Implemented Interfaces:
jakarta.jms.Destination,Externalizable,Serializable,Comparable<JmsDestination>,Referenceable,JmsResource
- Direct Known Subclasses:
JmsTemporaryQueue,JmsTemporaryTopic
Temporary Destination Object
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.jms.meta.JmsResource
JmsResource.ResourceState -
Field Summary
Fields inherited from class org.apache.qpid.jms.JmsDestination
address, connection, hashValue, temporary, topic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the assigned resource ID for this JmsResource instance.getState()protected booleanvoidSets or updates the current state of this resource.protected voidAttempts to delete the destination if there is an assigned Connection object.voidvisit(JmsResourceVistor visitor) Allows a visitor object to walk the resources and process them.Methods inherited from class org.apache.qpid.jms.JmsDestination
buildFromProperties, compareTo, equals, getAddress, hashCode, isQueue, isTemporary, isTopic, populateProperties, readExternal, setAddress, toString, writeExternalMethods inherited from class org.apache.qpid.jms.jndi.JNDIStorable
getProperties, getProperty, getReference, setProperties
-
Constructor Details
-
JmsTemporaryDestination
public JmsTemporaryDestination() -
JmsTemporaryDestination
-
-
Method Details
-
getId
Description copied from interface:JmsResourceReturns the assigned resource ID for this JmsResource instance.- Specified by:
getIdin interfaceJmsResource- Returns:
- the assigned resource ID for this JmsResource instance.
-
getState
- Specified by:
getStatein interfaceJmsResource- Returns:
- the current state of this resource.
-
setState
Description copied from interface:JmsResourceSets or updates the current state of this resource.- Specified by:
setStatein interfaceJmsResource- Parameters:
state- The new state to apply to this resource.
-
tryDelete
protected void tryDelete() throws jakarta.jms.JMSExceptionAttempts to delete the destination if there is an assigned Connection object.- Throws:
jakarta.jms.JMSException- if an error occurs or the provider doesn't support delete of destinations from the client.
-
isDeleted
protected boolean isDeleted() throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-
visit
Description copied from interface:JmsResourceAllows a visitor object to walk the resources and process them.- Specified by:
visitin interfaceJmsResource- Parameters:
visitor- The visitor instance that is processing this resource.- Throws:
Exception- if an error occurs while visiting this resource.
-