Example usage for Java org.apache.commons.dbcp.datasources PerUserPoolDataSource fields, constructors, methods, implement or subclass
The text is from its open source code.
PerUserPoolDataSource() Default no-arg constructor for Serialization |
void | close() Close pool(s) being maintained by this datasource. |
ConnectionPoolDataSource | getConnectionPoolDataSource() Get the value of connectionPoolDataSource. |
String | getDataSourceName() Get the name of the ConnectionPoolDataSource which backs this pool. |
int | getDefaultMaxActive() The maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit. |
int | getDefaultMaxIdle() The maximum number of active connections that can remain idle in the pool, without extra ones being released, or negative for no limit. |
int | getDefaultMaxWait() 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 | getDefaultTransactionIsolation() Get the value of defaultTransactionIsolation, which defines the state of connections handed out from this pool. |
String | getDescription() Get the description. |
String | getJndiEnvironment(String key) Get the value of jndiEnvironment which is used when instantiating a jndi InitialContext. |
int | getLoginTimeout() Get the value of loginTimeout. |
int | getMinEvictableIdleTimeMillis() Returns the minimum amount of time an object may sit idle in the pool before it is eligable for eviction by the idle object evictor (if any). |
int | getNumTestsPerEvictionRun() Returns the number of objects to examine during each run of the idle object evictor thread (if any). |
Boolean | getPerUserDefaultAutoCommit(String key) The keys are usernames and the value is the --. |
Boolean | getPerUserDefaultReadOnly(String username) The keys are usernames and the value is the --. |
Integer | getPerUserDefaultTransactionIsolation(String username) The isolation level of connections when returned from getConnection. |
Integer | getPerUserMaxActive(String username) The maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit. |
Integer | getPerUserMaxIdle(String username) The maximum number of active connections that can remain idle in the pool, without extra ones being released, or negative for no limit. |
Integer | getPerUserMaxWait(String username) 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 | getTimeBetweenEvictionRunsMillis() Returns the number of milliseconds to sleep between runs of the idle object evictor thread. |
String | getValidationQuery() The SQL query that will be used to validate connections from this pool before returning them to the caller. |
boolean | isDefaultAutoCommit() Get the value of defaultAutoCommit, which defines the state of connections handed out from this pool. |
boolean | isDefaultReadOnly() Get the value of defaultReadOnly, which defines the state of connections handed out from this pool. |
boolean | isRollbackAfterValidation() Whether a rollback will be issued after executing the SQL query that will be used to validate connections from this pool before returning them to the caller. |
boolean | isTestOnBorrow() |
boolean | isTestOnReturn() |
boolean | isTestWhileIdle() |
void | setConnectionPoolDataSource(ConnectionPoolDataSource v) Set the backend ConnectionPoolDataSource. |
void | setDefaultAutoCommit(boolean v) Set the value of defaultAutoCommit, which defines the state of connections handed out from this pool. |
void | setDefaultMaxActive(int maxActive) The maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit. |
void | setDefaultMaxIdle(int defaultMaxIdle) The maximum number of active connections that can remain idle in the pool, without extra ones being released, or negative for no limit. |
void | setDefaultMaxWait(int defaultMaxWait) 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. |
void | setDefaultReadOnly(boolean v) Set the value of defaultReadOnly, which defines the state of connections handed out from this pool. |
void | setDefaultTransactionIsolation(int v) Set the value of defaultTransactionIsolation, which defines the state of connections handed out from this pool. |
void | setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) Sets the minimum amount of time an object may sit idle in the pool before it is eligable for eviction by the idle object evictor (if any). |
void | setNumTestsPerEvictionRun(int numTestsPerEvictionRun) Sets the number of objects to examine during each run of the idle object evictor thread (if any). |
void | setTestOnBorrow(boolean testOnBorrow) When true, objects will be {*link PoolableObjectFactory#validateObject validated} before being returned by the {*link #borrowObject} method. |
void | setTestOnReturn(boolean testOnReturn) When true, objects will be {*link PoolableObjectFactory#validateObject validated} before being returned to the pool within the {*link #returnObject}. |
void | setTestWhileIdle(boolean testWhileIdle) When true, objects will be {*link PoolableObjectFactory#validateObject validated} by the idle object evictor (if any). |
void | setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) Sets the number of milliseconds to sleep between runs of the idle object evictor thread. |
void | setValidationQuery(String validationQuery) The SQL query that will be used to validate connections from this pool before returning them to the caller. |