|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClosableDataSource
ClosableDataSource interface.
| Method Summary | |
|---|---|
void |
close()
Close the datasource, if necessary. |
void |
setIdleTimeout(int idleTimeout)
How long, in seconds, an idle connection is kept in the pool before it is removed. |
void |
setLoginTimeout(int loginTimeout)
How long, in seconds, to attempt to make a connection to the database. |
void |
setMaxPool(int maxPool)
The maximum number of pooled connections to retain. |
void |
setMaxSize(int maxSize)
The maximum number of connections that can be created. |
void |
setMinPool(int minPool)
The minimum number of pooled connections to retain. |
| Methods inherited from interface javax.sql.DataSource |
|---|
getConnection, getConnection |
| Methods inherited from interface javax.sql.CommonDataSource |
|---|
getLoginTimeout, getLogWriter, setLogWriter |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
void close()
throws SQLException
SQLException - if any.void setIdleTimeout(int idleTimeout)
idleTimeout -
void setLoginTimeout(int loginTimeout)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionvoid setMinPool(int minPool)
minPool - void setMaxPool(int maxPool)
maxPool - void setMaxSize(int maxSize)
maxSize -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||