public class TemporaryQueue extends Queue implements jakarta.jms.TemporaryQueue
jakarta.jms.TemporaryQueue interface.
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.
| Modifier and Type | Field and Description |
|---|---|
private Connection |
cnx
The connection the queue belongs to,
null if not known. |
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
DELIVERY_DELAY, REDELIVERY_DELAYACQUISITION_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, wrapperrand| Constructor and Description |
|---|
TemporaryQueue() |
TemporaryQueue(String agentId,
Connection cnx)
Constructs a temporary queue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
API method.
|
Connection |
getCnx()
Returns the connection this temporary queue belongs to,
null if not known. |
String |
toString()
Returns a String image of the 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, setThresholdaddInterceptor, 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, unsetWritergetReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddInterceptors, addReader, addWriter, getAdminName, getDMQId, getInterceptors, getName, getReaderList, getStatistic, getStatistics, getWriterList, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, removeInterceptors, removeReader, removeWriter, setDMQId, setFreelyReadable, setFreelyWriteableprivate static final long serialVersionUID
private Connection cnx
null if not known.public TemporaryQueue()
public TemporaryQueue(String agentId, Connection cnx)
agentId - Identifier of the queue agent.cnx - The connection the queue belongs to, null if
not known.public String toString()
public void delete()
throws jakarta.jms.JMSException
delete in interface jakarta.jms.TemporaryQueuedelete in interface DestinationMBeandelete in class DestinationIllegalStateException - If the connection is closed or broken.jakarta.jms.JMSException - If the request fails for any other reason.public Connection getCnx()
null if not known.Copyright © 2023 ScalAgent D.T.. All rights reserved.