|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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()
Get time after which idle connections will be deallocated. |
int |
getMaxConnections()
Get maximum number of physical connections that can be simultaneously open. |
int |
getMinConnections()
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. |
Method Detail |
public int getMinConnections()
public int getMaxConnections()
public int getBlockingTimeout()
ConnectionPoolDataSource.getPooledConnection()
can block. By default method blocks forever.
Integer.MAX_VALUE
indicates blocking forever.public int getRetryInterval()
public int getIdleTimeout()
Integer.MAX_VALUE
indicates that idle connections are not removed.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |