|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.jms Interface ServerSessionPool
public interface ServerSessionPool
ServerSessionPool
对象是由应用服务器实现的对象,它提供用于处理 ConnectionConsumer
消息的 ServerSession
对象的池(可选)。
该对象唯一的方法是 getServerSession
。JMS API 没有架构实现该池的方式。它可以是 ServerSession
对象的静态池,它也可能使用复杂算法根据需要动态创建 ServerSession
对象。
如果 ServerSessionPool
中没有 ServerSession
对象,则 getServerSession
调用可能会阻塞。如果 ConnectionConsumer
被阻塞,则在最终返回 ServerSession
之前,它不会传送新消息。
version |
| |
See also | javax.jms.ServerSession |
A ServerSessionPool
object is an object implemented by an
application server to provide a pool of ServerSession
objects
for processing the messages of a ConnectionConsumer
(optional).
Its only method is getServerSession
. The JMS API does not
architect how the pool is implemented. It could be a static pool of
ServerSession
objects, or it could use a sophisticated
algorithm to dynamically create ServerSession
objects as
needed.
If the ServerSessionPool
is out of
ServerSession
objects, the getServerSession
call
may block. If a ConnectionConsumer
is blocked, it cannot
deliver new messages until a ServerSession
is
eventually returned.
- Version:
- 1.0 - 9 March 1998
- Author:
- Mark Hapner, Rich Burridge
- See Also:
ServerSession
Method Summary | |
---|---|
ServerSession |
getServerSession()
Return a server session from the pool. |
Method Detail |
---|
public ServerSession
getServerSession() throws JMSException
返回池中的服务器会话。
return | 池中的服务器会话 |
Throws | JMSException:
如果应用服务器无法返回其服务器会话池中的 ServerSession 。 |
getServerSession
ServerSession getServerSession() throws JMSException
- Return a server session from the pool.
- Returns:
- a server session from the pool
- Throws:
JMSException
- if an application server fails to return aServerSession
out of its server session pool.
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!