|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intersys.jdbc.CacheDataSource
com.intersys.jdbc.CacheConnectionPoolDataSource
CacheConnectionPoolDataSource
object is an implementation of
ConnectionPoolDataSource
interface
In addition to the apis defined by the interface, this class also includes a number
of Cache specific apis. There are apis that can be used to limit (and view) the max
connection pool size, view current pool size, and reset the current connection pool.
Connections should always be obtained by calling getConnection apis, which
are inherited from the DataSource
class. getPooledConnection apis
are meant for use within the driver only, and should not be used by the calling
applications.
Constructor Summary | |
CacheConnectionPoolDataSource()
|
Method Summary | |
int |
getMaxPoolSize()
Returns the current Connection Pool max size |
int |
getPoolCount()
Returns the current Connection Pool size |
javax.sql.PooledConnection |
getPooledConnection()
IMPORTANT: this api SHOULD NOT be used to obtain a pooled connection. |
javax.sql.PooledConnection |
getPooledConnection(String usr,
String pwd)
IMPORTANT: this api SHOULD NOT be used to obtain a pooled connection. |
void |
restartConnectionPool()
Restarts a Connection Pool. |
void |
setMaxPoolSize(int max)
Sets a Connection Pool max size. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.ConnectionPoolDataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
public CacheConnectionPoolDataSource()
Method Detail |
public javax.sql.PooledConnection getPooledConnection() throws SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
SQLException
public javax.sql.PooledConnection getPooledConnection(String usr, String pwd) throws SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
SQLException
public void restartConnectionPool() throws SQLException
SQLException
public int getPoolCount()
public void setMaxPoolSize(int max)
max
- max pool sizepublic int getMaxPoolSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |