|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.dbcp.datasources.InstanceKeyDataSource
org.apache.commons.dbcp.datasources.SharedPoolDataSource
public class SharedPoolDataSource
A pooling DataSource
appropriate for deployment within
J2EE environment. There are many configuration options, most of which are
defined in the parent class. All users (based on username) share a single
maximum number of Connections in this datasource.
Constructor Summary | |
---|---|
SharedPoolDataSource()
Default no-arg constructor for Serialization |
Method Summary | |
---|---|
void |
close()
Close pool being maintained by this datasource. |
int |
getMaxActive()
The maximum number of active connections that can be allocated from this pool at the same time, or zero for no limit. |
int |
getMaxIdle()
The maximum number of active connections that can remain idle in the pool, without extra ones being released, or zero for no limit. |
int |
getMaxWait()
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely. |
int |
getNumActive()
Get the number of active connections in the pool. |
int |
getNumIdle()
Get the number of idle connections in the pool. |
void |
setMaxActive(int maxActive)
The maximum number of active connections that can be allocated from this pool at the same time, or zero for no limit. |
void |
setMaxIdle(int maxIdle)
The maximum number of active connections that can remain idle in the pool, without extra ones being released, or zero for no limit. |
void |
setMaxWait(int maxWait)
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SharedPoolDataSource()
Method Detail |
---|
public void close() throws java.lang.Exception
close
in class InstanceKeyDataSource
java.lang.Exception
public int getMaxActive()
public int getMaxIdle()
public int getMaxWait()
public int getNumActive()
public int getNumIdle()
public void setMaxActive(int maxActive)
public void setMaxIdle(int maxIdle)
public void setMaxWait(int maxWait)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |