org.apache.qpid.client
Class AMQQueue

java.lang.Object
  extended by org.apache.qpid.client.AMQDestination
      extended by org.apache.qpid.client.AMQQueue
All Implemented Interfaces:
javax.jms.Destination, javax.jms.Queue, javax.naming.Referenceable

public class AMQQueue
extends AMQDestination
implements javax.jms.Queue


Field Summary
 
Fields inherited from class org.apache.qpid.client.AMQDestination
_destinationName, _exchangeClass, _exchangeName, _isAutoDelete, _isDurable, _isExclusive, _queueName
 
Constructor Summary
AMQQueue(org.apache.qpid.url.BindingURL binding)
          Create a reference to a non temporary queue using a BindingURL object.
AMQQueue(java.lang.String name)
          Create a reference to a non temporary queue.
AMQQueue(java.lang.String name, boolean temporary)
          Create a queue with a specified name.
AMQQueue(java.lang.String destinationName, java.lang.String queueName, boolean exclusive, boolean autoDelete)
          Create a reference to a queue.
 
Method Summary
 java.lang.String getEncodedName()
           
 java.lang.String getRoutingKey()
           
 boolean isNameRequired()
           
 
Methods inherited from class org.apache.qpid.client.AMQDestination
equals, getDestinationName, getExchangeClass, getExchangeName, getQueueName, getReference, hashCode, isAutoDelete, isDurable, isExclusive, isQueue, isTopic, setQueueName, toString, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Queue
getQueueName, toString
 

Constructor Detail

AMQQueue

public AMQQueue(org.apache.qpid.url.BindingURL binding)
Create a reference to a non temporary queue using a BindingURL object. Note this does not actually imply the queue exists.

Parameters:
binding - a BindingURL object

AMQQueue

public AMQQueue(java.lang.String name)
Create a reference to a non temporary queue. Note this does not actually imply the queue exists.

Parameters:
name - the name of the queue

AMQQueue

public AMQQueue(java.lang.String name,
                boolean temporary)
Create a queue with a specified name.

Parameters:
name - the destination name (used in the routing key)
temporary - if true the broker will generate a queue name, also if true then the queue is autodeleted and exclusive

AMQQueue

public AMQQueue(java.lang.String destinationName,
                java.lang.String queueName,
                boolean exclusive,
                boolean autoDelete)
Create a reference to a queue. Note this does not actually imply the queue exists.

Parameters:
destinationName - the queue name
queueName - the queue name
exclusive - true if the queue should only permit a single consumer
autoDelete - true if the queue should be deleted automatically when the last consumers detaches
Method Detail

getEncodedName

public java.lang.String getEncodedName()
Specified by:
getEncodedName in class AMQDestination

getRoutingKey

public java.lang.String getRoutingKey()
Specified by:
getRoutingKey in class AMQDestination

isNameRequired

public boolean isNameRequired()
Specified by:
isNameRequired in class AMQDestination