org.jboss.jms.asf
Class StdServerSessionPool
java.lang.Object
|
+--org.jboss.jms.asf.StdServerSessionPool
- All Implemented Interfaces:
- javax.jms.ServerSessionPool
- public class StdServerSessionPool
- extends java.lang.Object
- implements javax.jms.ServerSessionPool
Implementation of ServerSessionPool.
Created: Thu Dec 7 17:02:03 2000
- Version:
- $Revision: 1.4.6.3 $
- Author:
- Peter Antman ., Hiram Chirino .
Constructor Summary |
StdServerSessionPool(javax.jms.Connection con,
boolean transacted,
int ack,
boolean useLocalTX,
javax.jms.MessageListener listener,
int maxSession)
Construct a StdServerSessionPool using the default pool size. |
Method Summary |
void |
clear()
Clear the pool, clear out both threads and ServerSessions,
connection.stop() should be run before this method. |
javax.jms.ServerSession |
getServerSession()
Get a server session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StdServerSessionPool
public StdServerSessionPool(javax.jms.Connection con,
boolean transacted,
int ack,
boolean useLocalTX,
javax.jms.MessageListener listener,
int maxSession)
throws javax.jms.JMSException
- Construct a StdServerSessionPool using the default pool size.
- Parameters:
con
- connection to get sessions fromtransacted
- transaction mode when not XA (ack
- ackmode when not XAlistener
- the listener the sessions will callmaxSession
- maximum number of sessions in the poolisuseLocalTX
- Description of Parameter- Throws:
javax.jms.JMSException
- Description of Exception
getServerSession
public javax.jms.ServerSession getServerSession()
throws javax.jms.JMSException
- Get a server session.
- Specified by:
getServerSession
in interface javax.jms.ServerSessionPool
- Returns:
- A server session.
- Throws:
javax.jms.JMSException
- Failed to get a server session.
clear
public void clear()
- Clear the pool, clear out both threads and ServerSessions,
connection.stop() should be run before this method.
Copyright © 2000 The JBoss Organization. All Rights Reserved.