org.apache.qpid.client
Class AMQQueue
java.lang.Object
org.apache.qpid.client.AMQDestination
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
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. |
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 |
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 namequeueName
- the queue nameexclusive
- true if the queue should only permit a single consumerautoDelete
- true if the queue should be deleted automatically when the last consumers detaches
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