|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.jms Interface TemporaryQueue
- All Superinterfaces:
- Destination, Queue
public interface TemporaryQueue
- extends Queue
TemporaryQueue
对象是 Connection
持续期间创建的唯一 Queue
对象。它是系统定义的队列,只能由创建它的 Connection
使用。
TemporaryQueue
对象可以在 Session
或 QueueSession
级创建。在 Session
级创建该对象允许 TemporaryQueue
与 Pub/Sub 域中的对象一起参与到事务中。如果在 QueueSession
级创建它,则它只能与 PTP 域中的对象一起参与到事务中。
version |
| |
See also | createTemporaryQueue(), createTemporaryQueue() |
A TemporaryQueue
object is a unique Queue
object
created for the duration of a Connection
. It is a
system-defined queue that can be consumed only by the
Connection
that created it.
A TemporaryQueue
object can be created at either the
Session
or QueueSession
level. Creating it at the
Session
level allows to the TemporaryQueue
to
participate in transactions with objects from the Pub/Sub domain.
If it is created at the QueueSession
, it will only
be able participate in transactions with objects from the PTP domain.
- Version:
- 1.1 - February 2, 2002
- Author:
- Mark Hapner, Rich Burridge, Kate Stout
- See Also:
Session.createTemporaryQueue()
,QueueSession.createTemporaryQueue()
Method Summary | |
---|---|
void |
delete()
Deletes this temporary queue. |
Methods inherited from interface javax.jms.Queue |
---|
getQueueName, toString |
Method Detail |
---|
public void
delete() throws JMSException
删除此临时队列。如果有现有接收者仍在使用该队列,则将抛出 JMSException
。
Throws | JMSException: 如果 JMS 提供者由于某个内部错误无法删除临时队列。 |
delete
void delete() throws JMSException
- Deletes this temporary queue. If there are existing receivers
still using it, a
JMSException
will be thrown. - Throws:
JMSException
- if the JMS provider fails to delete the temporary queue due to some internal error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!