Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.message
Class ActiveMQQueue  view ActiveMQQueue download ActiveMQQueue.java

java.lang.Object
  extended byorg.activemq.jndi.JNDIBaseStorable
      extended byorg.activemq.message.ActiveMQDestination
          extended byorg.activemq.message.ActiveMQQueue
All Implemented Interfaces:
java.lang.Comparable, javax.jms.Destination, org.activemq.jndi.JNDIStorableInterface, javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable
Direct Known Subclasses:
ActiveMQTemporaryQueue

public class ActiveMQQueue
extends ActiveMQDestination
implements javax.jms.Queue

A Queue object encapsulates a provider-specific queue name. It is the way a client specifies the identity of a queue to JMS API methods. For those methods that use a Destination as a parameter, a Queue object used as an argument. For example, a queue can be used to create a MessageConsumer and a MessageProducer by calling:

The actual length of time messages are held by a queue and the consequences of resource overflow are not defined by the JMS API.


Field Summary
private static long serialVersionUID
           
 
Fields inherited from class org.activemq.message.ActiveMQDestination
ACTIVEMQ_QUEUE, ACTIVEMQ_TEMPORARY_QUEUE, ACTIVEMQ_TEMPORARY_TOPIC, ACTIVEMQ_TOPIC, ADVISORY_PREFIX, CONNECTION_ADVISORY_PREFIX, CONSUMER_ADVISORY_PREFIX, DEFAULT_ORDERED_TARGET, PRODUCER_ADVISORY_PREFIX, TEMP_DESTINATION_ADVISORY_PREFIX
 
Fields inherited from class org.activemq.jndi.JNDIBaseStorable
 
Constructor Summary
ActiveMQQueue()
          Default constructor for an ActiveMQQueue Destination
ActiveMQQueue(java.lang.String name)
          Construct a named ActiveMQQueue Destination
 
Method Summary
protected  javax.jms.Destination createDestination(java.lang.String name)
          Factory method to create a child destination if this destination is a composite
protected  org.activemq.management.JMSDestinationStats createDestinationStats()
          Factory method to create a statistics counter object
 int getDestinationType()
           
 java.lang.String getQueueName()
          Gets the name of this queue.
 boolean isQueue()
          Returns true if a Queue Destination
 boolean isTopic()
          Returns true if a Topic Destination
 
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, isTemporary, isWildcard, matches, populateProperties, readFromStream, setAdvisory, setChildDestinations, setDeleted, setExclusive, setOrdered, setOrderedTarget, setPhysicalName, setSessionCreatedBy, setStats, toString, transformDestination, writeToStream
 
Methods inherited from class org.activemq.jndi.JNDIBaseStorable
getProperties, getReference, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Queue
toString
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ActiveMQQueue

public ActiveMQQueue()
Default constructor for an ActiveMQQueue Destination


ActiveMQQueue

public ActiveMQQueue(java.lang.String name)
Construct a named ActiveMQQueue Destination

Method Detail

getQueueName

public java.lang.String getQueueName()
Gets the name of this queue.

Clients that depend upon the name are not portable.

Specified by:
getQueueName in interface javax.jms.Queue

getDestinationType

public int getDestinationType()
Specified by:
getDestinationType in class ActiveMQDestination

isTopic

public boolean isTopic()
Returns true if a Topic Destination

Overrides:
isTopic in class ActiveMQDestination

isQueue

public boolean isQueue()
Returns true if a Queue Destination

Overrides:
isQueue in class ActiveMQDestination

createDestination

protected javax.jms.Destination createDestination(java.lang.String name)
Description copied from class: ActiveMQDestination
Factory method to create a child destination if this destination is a composite

Specified by:
createDestination in class ActiveMQDestination

createDestinationStats

protected org.activemq.management.JMSDestinationStats createDestinationStats()
Description copied from class: ActiveMQDestination
Factory method to create a statistics counter object

Specified by:
createDestinationStats in class ActiveMQDestination