|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.ei.txnhandler.connector.offline.OffLineConnectionPool
public class OffLineConnectionPool
This class is a Connection Pool for the OffLine Connector. It stores and manages a series of physical (EManaged) connections to the offline database. This class is used in conjunction with the OffLineConnectionManager, for situations where a JDBC DataSource object is available from the appliacation server.
Constructor Summary | |
---|---|
OffLineConnectionPool(String name,
int maxConns,
int timeOut)
OffLineConnectionPool constructor. |
Method Summary | |
---|---|
void |
addConnection(EManagedConnection conn)
This method adds a connection to the pool of available connections. |
void |
freeConnection(EManagedConnection conn)
This method frees (makes available for use) a connection in the pool that was currently in use. |
EManagedConnection |
getConnection(EManagedConnectionFactory mcf,
String properties)
This method gets a managed connection from the pool. |
Set |
getFreeConnections()
This method returns the Set of free connections available in the pool. |
String |
getName()
This method gets the name of this pool. |
void |
release()
This method releases all existing free connections in the Connection Pool. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OffLineConnectionPool(String name, int maxConns, int timeOut)
name
- The name of the Pool to be created.maxConns
- The maximum connections allowable.timeOut
- The max amount of time to wait for a connection that is not available.Method Detail |
---|
public void addConnection(EManagedConnection conn)
conn
- The connection to add to the pool.public void freeConnection(EManagedConnection conn)
conn
- The connection to free in the pool.public EManagedConnection getConnection(EManagedConnectionFactory mcf, String properties) throws SQLException
mcf
- The ManagedConnectionFactory for creation of a new connection if necessary.properties
- A String of semi-colon delimited property values to be associated with this
connection.
SQLException
public Set getFreeConnections()
public String getName()
public void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |