Package org.objectweb.joram.client.jms
Class TemporaryQueue
- java.lang.Object
-
- org.objectweb.joram.client.jms.admin.AdministeredObject
-
- org.objectweb.joram.client.jms.Destination
-
- org.objectweb.joram.client.jms.Queue
-
- org.objectweb.joram.client.jms.TemporaryQueue
-
- All Implemented Interfaces:
Serializable,Destination,Queue,TemporaryQueue,Referenceable,DestinationMBean,QueueMBean
public class TemporaryQueue extends Queue implements TemporaryQueue
Implements thejavax.jms.TemporaryQueueinterface.A TemporaryQueue object is a Queue object created for the duration of a Connection. It is a system-defined queue that can be consumed only by the Connection that created it. A TemporaryQueue object can be created at either the Session or QueueSession level.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ConnectioncnxThe connection the queue belongs to,nullif not known.private static longserialVersionUIDdefine serialVersionUID for interoperability-
Fields inherited from class org.objectweb.joram.client.jms.Queue
DELIVERY_DELAY, REDELIVERY_DELAY
-
Fields inherited from class org.objectweb.joram.client.jms.Destination
ACQUISITION_QUEUE, ACQUISITION_TOPIC, adminName, agentId, ALIAS_QUEUE, CLUSTER_QUEUE, DEAD_MQUEUE, DISTRIBUTION_QUEUE, DISTRIBUTION_TOPIC, FTP_QUEUE, JMXBeanName, logger, QUEUE, QUEUE_TYPE, SCHEDULER_QUEUE, TEMPORARY, TOPIC, TOPIC_TYPE, wrapper
-
Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
rand
-
-
Constructor Summary
Constructors Constructor Description TemporaryQueue()TemporaryQueue(String agentId, Connection cnx)Constructs a temporary queue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()API method.ConnectiongetCnx()Returns the connection this temporary queue belongs to,nullif not known.StringtoString()Returns a String image of the queue.-
Methods inherited from class org.objectweb.joram.client.jms.Queue
addClusteredQueue, addRemoteDestination, addRemoteDestination, clear, create, create, create, create, create, create, create, createQueue, deleteMessage, delRemoteDestination, delRemoteDestination, getDeliveredMessages, getMessage, getMessageDigest, getMessageHeader, getMessageIds, getMessageProperties, getNbMaxMsg, getPendingMessages, getPendingRequests, getQueueClusterElements, getQueueName, getThreshold, readMessage, registerAsDefaultDMQ, registerAsDefaultDMQ, removeClusteredQueue, removeFromCluster, sendDestinationsWeights, setDeliveryDelay, setNbMaxMsg, setPause, setProperties, setRedeliveryDelay, setSyncExceptionOnFull, setThreshold
-
Methods inherited from class org.objectweb.joram.client.jms.Destination
addInterceptor, addInterceptors, addReader, addWriter, check, checkId, doCreate, doRequest, equals, fromReference, getAdminName, getDMQ, getDMQId, getInterceptors, getJMXBeanName, getName, getReaderList, getReaders, getStatistic, getStatistics, getStatistics, getType, getWrapper, getWriterList, getWriters, hashCode, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, newInstance, registerMBean, removeInterceptors, removeReader, removeWriter, replaceInterceptor, replaceInterceptor, scale, setDMQ, setDMQId, setFreelyReadable, setFreelyWriteable, setFreeReading, setFreeWriting, setReader, setWrapper, setWriter, toReference, toXml, unregisterMBean, unsetFreeReading, unsetFreeWriting, unsetReader, unsetWriter
-
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getReference
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.objectweb.joram.client.jms.DestinationMBean
addInterceptors, addReader, addWriter, getAdminName, getDMQId, getInterceptors, getName, getReaderList, getStatistic, getStatistics, getWriterList, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, removeInterceptors, removeReader, removeWriter, setDMQId, setFreelyReadable, setFreelyWriteable
-
Methods inherited from interface javax.jms.Queue
getQueueName
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
cnx
private Connection cnx
The connection the queue belongs to,nullif not known.
-
-
Constructor Detail
-
TemporaryQueue
public TemporaryQueue()
-
TemporaryQueue
public TemporaryQueue(String agentId, Connection cnx)
Constructs a temporary queue.- Parameters:
agentId- Identifier of the queue agent.cnx- The connection the queue belongs to,nullif not known.
-
-
Method Detail
-
toString
public String toString()
Returns a String image of the queue.
-
delete
public void delete() throws JMSExceptionAPI method. Deletes this temporary queue. If there are existing receivers still using it, a JMSException will be thrown.- Specified by:
deletein interfaceDestinationMBean- Specified by:
deletein interfaceTemporaryQueue- Overrides:
deletein classDestination- Throws:
IllegalStateException- If the connection is closed or broken.JMSException- If the request fails for any other reason.
-
getCnx
public Connection getCnx()
Returns the connection this temporary queue belongs to,nullif not known.
-
-