org.activemq.message
Class ActiveMQTemporaryTopic
java.lang.Object
org.activemq.jndi.JNDIBaseStorable
org.activemq.message.ActiveMQDestination
org.activemq.message.ActiveMQTopic
org.activemq.message.ActiveMQTemporaryTopic
- All Implemented Interfaces:
- Serializable, Comparable, Destination, TemporaryTopic, Topic, Referenceable, JNDIStorableInterface
public class ActiveMQTemporaryTopic
- extends ActiveMQTopic
- implements TemporaryTopic
A TemporaryTopic
object is a unique 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. Creating it at the
Session
level allows the TemporaryTopic
to participate
in the same transaction with objects from the PTP domain.
If a TemporaryTopic
is created at the
TopicSession
, it will only
be able participate in transactions with objects from the Pub/Sub domain.
- See Also:
Session.createTemporaryTopic()
,
TopicSession.createTemporaryTopic()
,
Serialized Form
Methods inherited from class org.activemq.message.ActiveMQDestination |
buildFromProperties, compareTo, compareTo, createDestination, createTemporaryName, decrementConsumerCounter, delete, equals, getChildDestinations, getClientId, getDestinationBeingAdvised, getDestinationFilter, getDestinationPaths, getOrderedTarget, getPhysicalName, getSessionCreatedBy, getStats, getTopicForConsumerAdvisory, getTopicForProducerAdvisory, getTopicForTempAdvisory, hashCode, incrementConsumerCounter, inspect, isAdvisory, isComposite, isConnectionAdvisory, isConsumerAdvisory, isDeleted, isExclusive, isOrdered, isProducerAdvisory, isQueue, isTempDestinationAdvisory, isTopic, isWildcard, matches, populateProperties, readFromStream, setAdvisory, setChildDestinations, setDeleted, setExclusive, setOrdered, setOrderedTarget, setPhysicalName, setSessionCreatedBy, setStats, toString, transformDestination, writeToStream |
ActiveMQTemporaryTopic
public ActiveMQTemporaryTopic()
- Default constructor for an ActiveMQTemporaryTopic Destination
ActiveMQTemporaryTopic
public ActiveMQTemporaryTopic(String name)
- Construct a named ActiveMQTemporaryTopic Destination
- Parameters:
name
-
getDestinationType
public int getDestinationType()
- Overrides:
getDestinationType
in class ActiveMQTopic
- Returns:
- Returns the Destination type
isTemporary
public boolean isTemporary()
- Returns true if a temporary Destination
- Overrides:
isTemporary
in class ActiveMQDestination
- Returns:
- true/false
Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.