setCheckReturnedConnection(boolean value) If set, instructs the connection to verify its valid when the
caller is done with the connection (calls close).
setIdleCheck(long idle) Sets the amount of time in milliseconds a connection has been
idle before the pool tests the connection to see if its still
valid.
If set, instructs the connection to verify its valid when the
caller is done with the connection (calls close). This is used
for debugging purposes only to help catch folks to return closed
connections to the pool.
Gets a DB connection, actually a wrapper that allows the
connection to be pooled. The method first allocates a
connection from the available pool, if there are none available
it creates a new connection unless that would put it over the
max pool size, in which case it forces the caller to wait.
If the data source was configured with a loginTimeout value
greater than 0, it will wait for loginTimeout seconds for a
connection.
This function is currently not implemented as it doesn't allow
us to use the connections in the pool. The workaround is to
create a new data source with a different user and password.
Should this just pass back an unpooled real connection?
Gets the amount of time in milliseconds a connection has been
idle before the pool tests the connection to see if its still
valid.
-1: Never check
0: Always check
The minimum number of connections in the pool. It will create
this number of connections when the pool is first initialized
and the pool will never shrink below this many connections.
Makes the connection available again. This is called by the
PooledConnection class when the user chooses to close a
connection.
setCheckReturnedConnection
public void setCheckReturnedConnection(boolean value)(Code)
If set, instructs the connection to verify its valid when the
caller is done with the connection (calls close). This is used
for debugging purposes only to help catch folks to return closed
connections to the pool.
Sets the amount of time in milliseconds a connection has been
idle before the pool tests the connection to see if its still
valid.
-1: Never check
0: Always check