public abstract class JmsTemporaryDestination extends JmsDestination implements JmsResource
JmsResource.ResourceStateaddress, connection, hashValue, temporary, topic| Constructor and Description |
|---|
JmsTemporaryDestination() |
JmsTemporaryDestination(String name,
boolean topic) |
| Modifier and Type | Method and Description |
|---|---|
JmsResourceId |
getId()
Returns the assigned resource ID for this JmsResource instance.
|
JmsResource.ResourceState |
getState() |
protected boolean |
isDeleted() |
void |
setState(JmsResource.ResourceState state)
Sets or updates the current state of this resource.
|
protected void |
tryDelete()
Attempts to delete the destination if there is an assigned Connection object.
|
void |
visit(JmsResourceVistor visitor)
Allows a visitor object to walk the resources and process them.
|
buildFromProperties, compareTo, equals, getAddress, hashCode, isQueue, isTemporary, isTopic, populateProperties, readExternal, setAddress, toString, writeExternalgetProperties, getProperty, getReference, setPropertiespublic JmsTemporaryDestination()
public JmsTemporaryDestination(String name, boolean topic)
public JmsResourceId getId()
JmsResourcegetId in interface JmsResourcepublic JmsResource.ResourceState getState()
getState in interface JmsResourcepublic void setState(JmsResource.ResourceState state)
JmsResourcesetState in interface JmsResourcestate - The new state to apply to this resource.protected void tryDelete()
throws javax.jms.JMSException
javax.jms.JMSException - if an error occurs or the provider doesn't support
delete of destinations from the client.protected boolean isDeleted()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void visit(JmsResourceVistor visitor) throws Exception
JmsResourcevisit in interface JmsResourcevisitor - The visitor instance that is processing this resource.Exception - if an error occurs while visiting this resource.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.