public class TemporaryTopic extends Topic implements jakarta.jms.TemporaryTopic
jakarta.jms.TemporaryTopic interface.
A TemporaryTopic object is a Topic object created for the duration of a Connection. It is a system-defined topic that can be consumed only by the Connection that created it. A TemporaryTopic object can be created either at the Session or TopicSession level.
| Modifier and Type | Field and Description |
|---|---|
private Connection |
cnx
The connection the topic belongs to,
null if not known. |
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
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, wrapperrand| Constructor and Description |
|---|
TemporaryTopic() |
TemporaryTopic(String agentId,
Connection cnx)
Constructs a temporary topic.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
API method.
|
(package private) Connection |
getCnx()
Returns the connection this temporary topic belongs to,
null if not known. |
String |
toString()
Returns a String image of the topic.
|
addClusteredTopic, create, create, create, create, create, create, create, createTopic, getClusterFellows, getHierarchicalFather, getSubscriberIds, getSubscriptions, getTopicName, removeFromCluster, setParent, unsetParentaddInterceptor, 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, setProperties, 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 TemporaryTopic()
public TemporaryTopic(String agentId, Connection cnx)
agentId - Identifier of the topic 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.TemporaryTopicdelete in interface DestinationMBeandelete in class DestinationIllegalStateException - If the connection is closed or broken.jakarta.jms.JMSException - If the request fails for any other reason.Connection getCnx()
null if not known.Copyright © 2023 ScalAgent D.T.. All rights reserved.