Package org.apache.cayenne.datasource
Class PoolingDataSourceBuilder
java.lang.Object
org.apache.cayenne.datasource.PoolingDataSourceBuilder
Deprecated, for removal: This API element is subject to removal in a future version.
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
ConstructorsConstructorDescriptionPoolingDataSourceBuilder(DataSourceBuilder nonPoolingBuilder) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated, for removal: This API element is subject to removal in a future version.Builds a pooling DataSource that needs to be explicitly closed by the caller when no longer in use.maxConnections(int maxConnections) Deprecated, for removal: This API element is subject to removal in a future version.maxQueueWaitTime(long maxQueueWaitTime) Deprecated, for removal: This API element is subject to removal in a future version.minConnections(int minConnections) Deprecated, for removal: This API element is subject to removal in a future version.validationQuery(String validationQuery) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
PoolingDataSourceBuilder
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
minConnections
Deprecated, for removal: This API element is subject to removal in a future version. -
maxConnections
Deprecated, for removal: This API element is subject to removal in a future version. -
maxQueueWaitTime
Deprecated, for removal: This API element is subject to removal in a future version. -
validationQuery
Deprecated, for removal: This API element is subject to removal in a future version. -
build
Deprecated, for removal: This API element is subject to removal in a future version.Builds a pooling DataSource that needs to be explicitly closed by the caller when no longer in use.
-
CayenneDataSource