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:
Externalizable,Serializable,Comparable<JmsDestination>,javax.jms.Destination,Referenceable,JmsResource
- Direct Known Subclasses:
JmsTemporaryQueue,JmsTemporaryTopic
public abstract class JmsTemporaryDestination extends JmsDestination implements JmsResource
Temporary Destination Object- See Also:
- Serialized Form
-
-
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 Constructor Description JmsTemporaryDestination()JmsTemporaryDestination(String name, boolean topic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmsResourceIdgetId()Returns the assigned resource ID for this JmsResource instance.JmsResource.ResourceStategetState()protected booleanisDeleted()voidsetState(JmsResource.ResourceState state)Sets or updates the current state of this resource.protected voidtryDelete()Attempts 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, writeExternal
-
Methods inherited from class org.apache.qpid.jms.jndi.JNDIStorable
getProperties, getProperty, getReference, setProperties
-
-
-
-
Constructor Detail
-
JmsTemporaryDestination
public JmsTemporaryDestination()
-
JmsTemporaryDestination
public JmsTemporaryDestination(String name, boolean topic)
-
-
Method Detail
-
getId
public JmsResourceId 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
public JmsResource.ResourceState getState()
- Specified by:
getStatein interfaceJmsResource- Returns:
- the current state of this resource.
-
setState
public void setState(JmsResource.ResourceState state)
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 javax.jms.JMSExceptionAttempts to delete the destination if there is an assigned Connection object.- Throws:
javax.jms.JMSException- if an error occurs or the provider doesn't support delete of destinations from the client.
-
isDeleted
protected boolean isDeleted() throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
visit
public void visit(JmsResourceVistor visitor) throws Exception
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.
-
-