|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes a configuration for AbstractConnectionPool
instances. Motivation for separating pool configuration into interface is
quite simple, it allows third-party applications to load configuration from
various sources (resource bundle, XML file, etc.).
Method Summary | |
int |
getBlockingTimeout()
Get time during which ConnectionPoolDataSource.getPooledConnection()
can block. |
int |
getIdleTimeout()
Deprecated. please use getMaxIdleTime() instead. |
int |
getMaxConnections()
Deprecated. please use getMaxPoolSize() instead. |
int |
getMaxIdleTime()
Get time after which idle connections will be deallocated. |
int |
getMaxPoolSize()
Get maximum number of physical connections that can be simultaneously open. |
int |
getMinConnections()
Deprecated. please use getMinPoolSize() instead. |
int |
getMinPoolSize()
Get minimum number of open JDBC connections that will be created when pool is started. |
int |
getPingInterval()
Get time interval after which connection should be pinged. |
java.lang.String |
getPingStatement()
Get SQL statement that will be used to ping connection. |
int |
getRetryInterval()
Get interval of getting connections retries. |
boolean |
isPingable()
Check if this pool supports pingable connections. |
boolean |
isPooling()
Check if this connection pool uses connection pooling, or just implements JDBC 2.0 SE interfaces. |
boolean |
isStatementPooling()
Check if this connection pool provides also prepared statement pooling. |
Method Detail |
public int getMinConnections()
getMinPoolSize()
instead.
public int getMinPoolSize()
public int getMaxConnections()
getMaxPoolSize()
instead.
public int getMaxPoolSize()
public int getBlockingTimeout()
ConnectionPoolDataSource.getPooledConnection()
can block. By default method blocks forever.Integer.MAX_VALUE
indicates blocking forever.public int getRetryInterval()
public int getIdleTimeout()
getMaxIdleTime()
instead.
Integer.MAX_VALUE
indicates that idle connections are not removed.public int getMaxIdleTime()
Integer.MAX_VALUE
indicates that idle connections are not removed.public boolean isPooling()
java.sql.Driver
.true
if pooling is enabled.public boolean isStatementPooling()
true
if prepared statement pooling is enabled.public boolean isPingable()
true
if this pool supports pingable connections.public java.lang.String getPingStatement()
Examples of ping SQL statements:
"SELECT CAST(1 AS INTEGER) FROM DUAL"
"SELECT CAST(1 AS INTEGER) FROM RDB$DATABASE"
public int getPingInterval()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |