javax.jms
Interface Queue

All Known Subinterfaces:
TemporaryQueue

public abstract 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.

Version:
1.0 - 9 March 1998
Author:
Mark Hapner, Rich Burridge

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
Returns:
the provider specific identity values for this queue.
Overrides:
toString in class java.lang.Object