Package javax.jms
Interface ServerSessionPool
-
public interface ServerSessionPool
AServerSessionPool
object is an object implemented by an application server to provide a pool ofServerSession
objects for processing the messages of aConnectionConsumer
(optional).Its only method is
getServerSession
. The Jakarta Messaging API does not architect how the pool is implemented. It could be a static pool ofServerSession
objects, or it could use a sophisticated algorithm to dynamically createServerSession
objects as needed.If the
ServerSessionPool
is out ofServerSession
objects, thegetServerSession
call may block. If aConnectionConsumer
is blocked, it cannot deliver new messages until aServerSession
is eventually returned.- Since:
- JMS 1.0
- See Also:
ServerSession
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerSession
getServerSession()
Return a server session from the pool.
-
-
-
Method Detail
-
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.
-
-