public interface ClosableDataSource extends DataSource, Closeable
ClosableDataSource interface.
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
getConnection, getConnectiongetLoginTimeout, getLogWriter, getParentLogger, setLogWriterisWrapperFor, unwrapvoid close()
close in interface AutoCloseableclose in interface Closeablevoid 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 - Copyright © 2021. All rights reserved.