|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.jndi.JNDIBaseStorable
org.activemq.message.ActiveMQDestination
org.activemq.message.ActiveMQQueue
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:
Session.CreateConsumer(Destination destination)
Session.CreateProducer(Destination destination)
The actual length of time messages are held by a queue and the consequences of resource overflow are not defined by the JMS API.
Session.createConsumer(javax.jms.Destination)
,
Session.createProducer(javax.jms.Destination)
,
Session.createQueue(String)
,
QueueSession.createQueue(String)
,
Serialized FormField Summary |
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 |
Constructor Summary | |
ActiveMQQueue()
Default constructor for an ActiveMQQueue Destination |
|
ActiveMQQueue(String name)
Construct a named ActiveMQQueue Destination |
Method Summary | |
protected Destination |
createDestination(String name)
Factory method to create a child destination if this destination is a composite |
protected JMSDestinationStats |
createDestinationStats()
Factory method to create a statistics counter object |
int |
getDestinationType()
|
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.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 |
Constructor Detail |
public ActiveMQQueue()
public ActiveMQQueue(String name)
name
- Method Detail |
public String getQueueName()
Clients that depend upon the name are not portable.
getQueueName
in interface Queue
public int getDestinationType()
getDestinationType
in class ActiveMQDestination
public boolean isTopic()
isTopic
in class ActiveMQDestination
public boolean isQueue()
isQueue
in class ActiveMQDestination
protected Destination createDestination(String name)
ActiveMQDestination
createDestination
in class ActiveMQDestination
name
-
protected JMSDestinationStats createDestinationStats()
ActiveMQDestination
createDestinationStats
in class ActiveMQDestination
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |