Package org.apache.cayenne.datasource
Class PoolingDataSourceBuilder
java.lang.Object
org.apache.cayenne.datasource.PoolingDataSourceBuilder
Turns unpooled DataSource to a connection pool. Normally you won't be
creating this builder explicitly. Call
DataSourceBuilder.pool(int, int)
method instead.- Since:
- 4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a pooling DataSource that needs to be explicitly closed by the caller when no longer in use.maxConnections
(int maxConnections) maxQueueWaitTime
(long maxQueueWaitTime) minConnections
(int minConnections) validationQuery
(String validationQuery)
-
Constructor Details
-
PoolingDataSourceBuilder
-
-
Method Details
-
minConnections
-
maxConnections
-
maxQueueWaitTime
-
validationQuery
-
build
Builds a pooling DataSource that needs to be explicitly closed by the caller when no longer in use.
-