Package org.apache.cayenne.datasource
Class PoolingDataSourceParameters
java.lang.Object
org.apache.cayenne.datasource.PoolingDataSourceParameters
A collection of pooling parameters used by
UnmanagedPoolingDataSource
.- Since:
- 4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
long
int
void
setMaxConnections
(int maxConnections) void
setMaxQueueWaitTime
(long maxQueueWaitTime) void
setMinConnections
(int minConnections) void
setValidationQuery
(String validationQuery)
-
Constructor Details
-
PoolingDataSourceParameters
public PoolingDataSourceParameters()
-
-
Method Details
-
getMinConnections
public int getMinConnections() -
setMinConnections
public void setMinConnections(int minConnections) -
getMaxConnections
public int getMaxConnections() -
setMaxConnections
public void setMaxConnections(int maxConnections) -
getMaxQueueWaitTime
public long getMaxQueueWaitTime() -
setMaxQueueWaitTime
public void setMaxQueueWaitTime(long maxQueueWaitTime) -
getValidationQuery
-
setValidationQuery
-