Queue (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.jms Interface Queue

所有父接口:
Destination
所有已知子接口:
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 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.

版本:
1.1 February 2 - 2000
作者:
Mark Hapner, Rich Burridge, Kate Stout
另请参见:
Session.createConsumer(Destination), Session.createProducer(Destination), Session.createQueue(String), QueueSession.createQueue(String)

方法摘要
 String getQueueName()
          Gets the name of this queue.
 String toString()
          Returns a string representation of this object.
 

方法详细信息

getQueueName

String getQueueName()
                    throws JMSException
Gets the name of this queue.

Clients that depend upon the name are not portable.

返回:
the queue name
抛出异常:
JMSException - if the JMS provider implementation of Queue fails to return the queue name due to some internal error.

toString

String toString()
Returns a string representation of this object.

重写:
toString in class Object
返回:
the provider-specific identity values for this queue

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.