|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.examples.txnhandler.connector.testcustomer.TestCustomerConnectionPool
This class maintains a pool of TestCustomerConnection instances
Constructor Summary | |
TestCustomerConnectionPool(java.lang.String name,
int maxConns,
int timeOut)
Default constructor |
Method Summary | |
void |
addConnection(EManagedConnection conn)
This method adds a connection to the free pool |
void |
freeConnection(EManagedConnection conn)
This method frees a connection |
EManagedConnection |
getConnection(EManagedConnectionFactory mcf,
java.lang.String properties)
This method gets a connection from the pool |
java.util.Set |
getFreeConnections()
This method gets all the free connections |
java.lang.String |
getName()
This method gets the name of the connection pool |
void |
release()
This method frees all connections |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestCustomerConnectionPool(java.lang.String name, int maxConns, int timeOut)
name
- Name of the poolmaxConns
- The maximum size of the pooltimeOut
- The maximum length of time to wait for a connection to become
freeMethod Detail |
public void addConnection(EManagedConnection conn)
conn
- The connectionpublic void freeConnection(EManagedConnection conn)
public EManagedConnection getConnection(EManagedConnectionFactory mcf, java.lang.String properties) throws java.sql.SQLException
mcf
- The connection factoryproperties
- The configuration properties for the connection
java.sql.SQLException
public java.util.Set getFreeConnections()
public java.lang.String getName()
public void release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |