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:
Destination, Queue, Referenceable
Direct Known Subclasses:
AMQTemporaryQueue

public class AMQQueue
extends AMQDestination
implements Queue


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.qpid.client.AMQDestination
AMQDestination.AddressOption, AMQDestination.Binding, AMQDestination.DestSyntax
 
Field Summary
 
Fields inherited from class org.apache.qpid.client.AMQDestination
_address, _addressType, _addrHelper, _assert, _create, _delete, _destSyntax, _exchangeClass, _exchangeName, _isAutoDelete, _isDurable, _isExclusive, _link, _name, _sourceNode, _subject, _targetLink, _targetNode, defaultDestSyntax, QUEUE_TYPE, TOPIC_TYPE, UNKNOWN_TYPE
 
Constructor Summary
AMQQueue(AMQConnection connection, String name)
           
AMQQueue(AMQConnection connection, String name, boolean temporary)
           
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString name)
          Create a reference to a non temporary queue.
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString routingKey, org.apache.qpid.framing.AMQShortString queueName)
           
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString routingKey, org.apache.qpid.framing.AMQShortString queueName, org.apache.qpid.framing.AMQShortString[] bindingKeys)
           
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString routingKey, org.apache.qpid.framing.AMQShortString queueName, boolean exclusive, boolean autoDelete)
          Create a reference to a queue.
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString routingKey, org.apache.qpid.framing.AMQShortString queueName, boolean exclusive, boolean autoDelete, boolean durable)
           
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString routingKey, org.apache.qpid.framing.AMQShortString queueName, boolean exclusive, boolean autoDelete, boolean durable, org.apache.qpid.framing.AMQShortString[] bindingKeys)
           
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString name, boolean temporary)
          Create a queue with a specified name.
AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName, String name)
          Create a reference to a non temporary queue.
AMQQueue(org.apache.qpid.url.BindingURL binding)
          Create a reference to a non temporary queue using a BindingURL object.
AMQQueue(String address)
           
AMQQueue(String exchangeName, String name)
          Create a reference to a non temporary queue.
AMQQueue(String exchangeName, String name, boolean temporary)
          Create a queue with a specified name.
 
Method Summary
 org.apache.qpid.framing.AMQShortString getRoutingKey()
           
 boolean isNameRequired()
           
 
Methods inherited from class org.apache.qpid.client.AMQDestination
copyDestination, createDestination, createDestination, createDestination, equals, getAddress, getAddressName, getAddressType, getAMQQueueName, getAssert, getBindingKeys, getCreate, getDefaultDestSyntax, getDelete, getDestSyntax, getDestType, getEncodedName, getExchangeClass, getExchangeName, getInfoFromBindingURL, getLink, getQueueName, getReference, getSourceNode, getSubject, getTargetNode, hashCode, isAddressResolved, isAutoDelete, isBrowseOnly, isCheckedForQueueBinding, isDurable, isExchangeExistsChecked, isExclusive, isQueue, isTopic, rebuildTargetAndSourceNodes, setAddress, setAddressName, setAddressResolved, setAddressType, setAssert, setAutoDelete, setBrowseOnly, setCheckedForQueueBinding, setCreate, setDelete, setDestSyntax, setDurable, setExchangeClass, setExchangeExistsChecked, setExchangeName, setLink, setQueueName, setRoutingKey, setSourceNode, setSubject, setTargetNode, stripSyntaxPrefix, toByteEncoding, toString, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.Queue
getQueueName, toString
 

Constructor Detail

AMQQueue

public AMQQueue(String address)
         throws URISyntaxException
Throws:
URISyntaxException

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(org.apache.qpid.framing.AMQShortString exchangeName,
                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(org.apache.qpid.framing.AMQShortString exchangeName,
                org.apache.qpid.framing.AMQShortString 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(org.apache.qpid.framing.AMQShortString exchangeName,
                org.apache.qpid.framing.AMQShortString routingKey,
                org.apache.qpid.framing.AMQShortString queueName)

AMQQueue

public AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName,
                org.apache.qpid.framing.AMQShortString routingKey,
                org.apache.qpid.framing.AMQShortString queueName,
                org.apache.qpid.framing.AMQShortString[] bindingKeys)

AMQQueue

public AMQQueue(String exchangeName,
                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(AMQConnection connection,
                String name)

AMQQueue

public AMQQueue(AMQConnection connection,
                String name,
                boolean temporary)

AMQQueue

public AMQQueue(String exchangeName,
                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(org.apache.qpid.framing.AMQShortString exchangeName,
                org.apache.qpid.framing.AMQShortString 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(org.apache.qpid.framing.AMQShortString exchangeName,
                org.apache.qpid.framing.AMQShortString routingKey,
                org.apache.qpid.framing.AMQShortString queueName,
                boolean exclusive,
                boolean autoDelete)
Create a reference to a queue. Note this does not actually imply the queue exists.

Parameters:
exchangeName - the exchange name we want to send the message to
routingKey - the routing key
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

AMQQueue

public AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName,
                org.apache.qpid.framing.AMQShortString routingKey,
                org.apache.qpid.framing.AMQShortString queueName,
                boolean exclusive,
                boolean autoDelete,
                boolean durable)

AMQQueue

public AMQQueue(org.apache.qpid.framing.AMQShortString exchangeName,
                org.apache.qpid.framing.AMQShortString routingKey,
                org.apache.qpid.framing.AMQShortString queueName,
                boolean exclusive,
                boolean autoDelete,
                boolean durable,
                org.apache.qpid.framing.AMQShortString[] bindingKeys)
Method Detail

getRoutingKey

public org.apache.qpid.framing.AMQShortString getRoutingKey()
Overrides:
getRoutingKey in class AMQDestination

isNameRequired

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


Licensed to the Apache Software Foundation