javax.jms
Interface Queue

All Known Subinterfaces:
TemporaryQueue

public interface Queue
extends Destination

A Queue object encapsulates a provider-specific queue name. It is the way a client specifies the identity of queue to JMS methods.

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

See Also:
QueueSession.createQueue(String)

Method Summary
 java.lang.String getQueueName()
          Get the name of this queue.
 java.lang.String toString()
          Return a pretty printed version of the queue name
 

Method Detail

getQueueName

public java.lang.String getQueueName()
                              throws JMSException
Get the name of this queue.

Clients that depend upon the name, are not portable.

Returns:
the queue name
Throws:
JMSException - if JMS implementation for Queue fails to to return queue name due to some internal error.

toString

public java.lang.String toString()
Return a pretty printed version of the queue name
Overrides:
toString in class java.lang.Object
Returns:
the provider specific identity values for this queue.