org.activemq.message
Class ActiveMQTemporaryQueue
java.lang.Object
org.activemq.jndi.JNDIBaseStorable
org.activemq.message.ActiveMQDestination
org.activemq.message.ActiveMQQueue
org.activemq.message.ActiveMQTemporaryQueue
- All Implemented Interfaces:
- Serializable, Comparable, Destination, Queue, TemporaryQueue, Referenceable, JNDIStorableInterface
public class ActiveMQTemporaryQueue
- extends ActiveMQQueue
- implements TemporaryQueue
A TemporaryQueue
object is a unique 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. Creating it at the
Session
level allows to the TemporaryQueue
to
participate in transactions with objects from the Pub/Sub domain.
If it is created at the QueueSession
, it will only
be able participate in transactions with objects from the PTP domain.
- See Also:
Session.createTemporaryQueue()
,
QueueSession.createTemporaryQueue()
,
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, isTempDestinationAdvisory, isWildcard, matches, populateProperties, readFromStream, setAdvisory, setChildDestinations, setDeleted, setExclusive, setOrdered, setOrderedTarget, setPhysicalName, setSessionCreatedBy, setStats, toString, transformDestination, writeToStream |
ActiveMQTemporaryQueue
public ActiveMQTemporaryQueue()
- Default constructor for an ActiveMQTemporaryQueue Destination
ActiveMQTemporaryQueue
public ActiveMQTemporaryQueue(String name)
- Construct a named ActiveMQTemporaryQueue Destination
- Parameters:
name
-
getDestinationType
public int getDestinationType()
- Overrides:
getDestinationType
in class ActiveMQQueue
- Returns:
- Returns the Destination type
isTemporary
public boolean isTemporary()
- Returns true if a temporary Destination
- Overrides:
isTemporary
in class ActiveMQDestination
- Returns:
- true/false
isTopic
public boolean isTopic()
- Returns true if a Topic Destination
- Overrides:
isTopic
in class ActiveMQQueue
- Returns:
- true/false
isQueue
public boolean isQueue()
- Returns true if a Queue Destination
- Overrides:
isQueue
in class ActiveMQQueue
- Returns:
- true/false
Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.