| 
 | ||||||||||
| 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
public class TestCustomerConnectionPool
This class maintains a pool of TestCustomerConnection instances
| Constructor Summary | |
|---|---|
| TestCustomerConnectionPool(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,
              String properties)This method gets a connection from the pool | 
|  Set | getFreeConnections()This method gets all the free connections | 
|  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(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
 free| Method Detail | 
|---|
public void addConnection(EManagedConnection conn)
conn - The connectionpublic void freeConnection(EManagedConnection conn)
public EManagedConnection getConnection(EManagedConnectionFactory mcf,
                                        String properties)
                                 throws SQLException
mcf - The connection factoryproperties - The configuration properties for the connection
SQLExceptionpublic Set getFreeConnections()
public String getName()
public void release()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||