Package org.objectweb.joram.client.jms
Class TemporaryTopic
- java.lang.Object
-
- org.objectweb.joram.client.jms.admin.AdministeredObject
-
- org.objectweb.joram.client.jms.Destination
-
- org.objectweb.joram.client.jms.Topic
-
- org.objectweb.joram.client.jms.TemporaryTopic
-
- All Implemented Interfaces:
Serializable,Destination,TemporaryTopic,Topic,Referenceable,DestinationMBean,TopicMBean
public class TemporaryTopic extends Topic implements TemporaryTopic
Implements thejavax.jms.TemporaryTopicinterface.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.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ConnectioncnxThe connection the topic belongs to,nullif not known.private static longserialVersionUIDdefine serialVersionUID for interoperability-
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 TemporaryTopic()TemporaryTopic(String agentId, Connection cnx)Constructs a temporary topic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()API method.(package private) ConnectiongetCnx()Returns the connection this temporary topic belongs to,nullif not known.StringtoString()Returns a String image of the topic.-
Methods inherited from class org.objectweb.joram.client.jms.Topic
addClusteredTopic, create, create, create, create, create, create, create, createTopic, getClusterFellows, getHierarchicalFather, getSubscriberIds, getSubscriptions, getTopicName, removeFromCluster, setParent, unsetParent
-
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, setProperties, 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.Topic
getTopicName
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
cnx
private Connection cnx
The connection the topic belongs to,nullif not known.
-
-
Constructor Detail
-
TemporaryTopic
public TemporaryTopic()
-
TemporaryTopic
public TemporaryTopic(String agentId, Connection cnx)
Constructs a temporary topic.- Parameters:
agentId- Identifier of the topic agent.cnx- The connection the queue belongs to,nullif not known.
-
-
Method Detail
-
toString
public String toString()
Returns a String image of the topic.
-
delete
public void delete() throws JMSExceptionAPI method. Deletes this temporary topic. If there are existing subscribers still using it, a JMSException will be thrown.- Specified by:
deletein interfaceDestinationMBean- Specified by:
deletein interfaceTemporaryTopic- Overrides:
deletein classDestination- Throws:
IllegalStateException- If the connection is closed or broken.JMSException- If the request fails for any other reason.
-
getCnx
Connection getCnx()
Returns the connection this temporary topic belongs to,nullif not known.
-
-