| java.lang.Object org.jboss.jms.asf.StdServerSessionPool
StdServerSessionPool | public class StdServerSessionPool implements ServerSessionPool(Code) | | Implementation of ServerSessionPool.
author: Peter Antman . author: Hiram Chirino . author: Adrian Brock version: $Revision: 57209 $ |
Constructor Summary | |
public | StdServerSessionPool(Destination destination, Connection con, boolean transacted, int ack, boolean useLocalTX, MessageListener listener, int minSession, int maxSession, long keepAlive, XidFactoryMBean xidFactory, TransactionManager tm) Construct a StdServerSessionPool. |
Method Summary | |
public void | clear() Clear the pool, clear out both threads and ServerSessions,
connection.stop() should be run before this method. | Executor | getExecutor() Get the executor we are using. | public ServerSession | getServerSession() Get a server session. | boolean | isTransacted() Returns true if this server session is transacted. | void | recycle(StdServerSession session) Recycle a server session. |
StdServerSessionPool | public StdServerSessionPool(Destination destination, Connection con, boolean transacted, int ack, boolean useLocalTX, MessageListener listener, int minSession, int maxSession, long keepAlive, XidFactoryMBean xidFactory, TransactionManager tm) throws JMSException(Code) | | Construct a StdServerSessionPool. Note the maxSession parameter controls
both the maximum number of sessions in the pool, as well as the number of listener
threads assigned to service requests from the JMS Provider.
Parameters: destination - the destination Parameters: con - connection to get sessions from Parameters: transacted - transaction mode when not XA ( Parameters: ack - ackmode when not XA Parameters: listener - the listener the sessions will call Parameters: minSession - minumum number of sessions in the pool Parameters: maxSession - maximum number of sessions in the pool Parameters: keepAlive - the time to keep sessions alive Parameters: xidFactory - the xid factory Parameters: tm - the transaction manager exception: JMSException - Description of Exception |
clear | public void clear()(Code) | | Clear the pool, clear out both threads and ServerSessions,
connection.stop() should be run before this method.
|
getExecutor | Executor getExecutor()(Code) | | Get the executor we are using.
The Executor value |
getServerSession | public ServerSession getServerSession() throws JMSException(Code) | | Get a server session.
A server session. throws: JMSException - Failed to get a server session. |
isTransacted | boolean isTransacted()(Code) | | Returns true if this server session is transacted.
The Transacted value |
recycle | void recycle(StdServerSession session)(Code) | | Recycle a server session.
Parameters: session - Description of Parameter |
|
|