public class ConnectionPoolConfiguration extends Object implements Serializable
Constructor and Description |
---|
ConnectionPoolConfiguration()
Constructs a ConnectionPoolConfiguration.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource()
Returns the data source used by this connection pool
config.
|
int |
getDefaultRowPrefetch()
Gets the default number of prefetched rows.
|
PrintStream |
getJdbcLogStream()
Gets the PrintStream to which the JDBC log will be sent.
|
int |
getMaximumSize()
Gets the absolute maximum number of LibraryConnections
in the ConnectionPool.
|
long |
getMaximumSizeTimeout()
Gets the period of time, in milliseconds, that attempting to acquire
a LibraryConnection will wait before throwing an exception if the
ConnectionPool size has reached its absolute maximum.
|
int |
getMinimumSize()
Gets the minimum number of LibraryConnections in the ConnectionPool.
|
String |
getName()
Gets the name of the ConnectionPool.
|
int |
getStatementCacheSizeTrigger()
Gets the number of statements that need to be cached before a purge
is triggered.
|
int |
getStatementCacheTarget()
Gets the target maximum number of statements we wish to keep cached.
|
int |
getStatementResetLimit()
Gets the access limit at which statements saved in LibraryConnections
will be closed and re-opened.
|
int |
getTargetSize()
Gets the target maximum number of LibraryConnections
in the ConnectionPool.
|
long |
getTargetSizeTimeout()
Gets the period of time, in milliseconds, that attempting to acquire
a LibraryConnection will wait before creating a new LibraryConnection
if the ConnectionPool size has reached its target maximum.
|
void |
setDataSource(DataSource dataSource)
Sets the DataSource for this Connection pool configuration.
|
void |
setDefaultRowPrefetch(int prefetch)
Sets the default number of prefetched rows.
|
void |
setJdbcLogStream(PrintStream stream)
Sets the PrintStream to which the JDBC log will be sent.
|
void |
setMaximumSize(int maximumSize)
Sets the absolute maximum number of LibraryConnections
in the ConnectionPool.
|
void |
setMaximumSizeTimeout(long timeout)
Sets the period of time, in milliseconds, that attempting to acquire
a LibraryConnection will wait before throwing an exception if the
ConnectionPool size has reached its absolute maximum.
|
void |
setMinimumSize(int minimumSize)
Sets the minimum number of LibraryConnections in the ConnectionPool.
|
void |
setName(String name)
Sets the name of the ConnectionPool.
|
void |
setStatementCacheSizeTrigger(int trigger)
Sets the number of statements that need to be cached before a purge
is triggered.
|
void |
setStatementCacheTarget(int target)
Sets the target maximum number of statements we wish to keep cached.
|
void |
setStatementResetLimit(int statementResetLimit)
Sets the access limit at which statements saved in LibraryConnections
will be closed and re-opened.
|
void |
setTargetSize(int targetSize)
Sets the target maximum number of LibraryConnections
in the ConnectionPool.
|
void |
setTargetSizeTimeout(long timeout)
Sets the period of time, in milliseconds, that attempting to acquire
a LibraryConnection will wait before creating a new LibraryConnection
if the ConnectionPool size has reached its target maximum.
|
public ConnectionPoolConfiguration() throws IfsException
IfsException
- if the operation failspublic void setName(String name) throws IfsException
name
- the nameIfsException
- if the operation failspublic String getName() throws IfsException
IfsException
- if the operation failspublic void setJdbcLogStream(PrintStream stream) throws IfsException
stream
- the stream, or null to disable JDBC loggingIfsException
- if the operation failspublic PrintStream getJdbcLogStream() throws IfsException
IfsException
- if the operation failspublic void setDefaultRowPrefetch(int prefetch) throws IfsException
prefetch
- the default row prefetchIfsException
- if the operation failspublic int getDefaultRowPrefetch() throws IfsException
IfsException
- if the operation failspublic void setStatementResetLimit(int statementResetLimit) throws IfsException
statementResetLimit
- see method descriptionIfsException
- if the operation failspublic int getStatementResetLimit() throws IfsException
IfsException
- if the operation failspublic void setStatementCacheTarget(int target) throws IfsException
target
- the target maximum number of statements to cacheIfsException
- if the operation failspublic int getStatementCacheTarget() throws IfsException
IfsException
- if the operation failspublic void setStatementCacheSizeTrigger(int trigger) throws IfsException
trigger
- the number of statements cached that triggers a purgeIfsException
- if the operation failspublic int getStatementCacheSizeTrigger() throws IfsException
IfsException
- if the operation failspublic void setMinimumSize(int minimumSize) throws IfsException
minimumSize
- the minimum sizeIfsException
- if the operation failspublic int getMinimumSize() throws IfsException
IfsException
- if the operation failspublic void setTargetSize(int targetSize) throws IfsException
targetSize
- the target maximum sizeIfsException
- if the operation failspublic int getTargetSize() throws IfsException
IfsException
- if the operation failspublic void setMaximumSize(int maximumSize) throws IfsException
maximumSize
- the absolute maximum sizeIfsException
- if the operation failspublic int getMaximumSize() throws IfsException
IfsException
- if the operation failspublic void setTargetSizeTimeout(long timeout) throws IfsException
timeout
- the wait period, in millisecondsIfsException
- if the operation failspublic long getTargetSizeTimeout() throws IfsException
IfsException
- if the operation failspublic void setMaximumSizeTimeout(long timeout) throws IfsException
timeout
- the wait period, in millisecondsIfsException
- if the operation failspublic long getMaximumSizeTimeout() throws IfsException
IfsException
- if the operation failspublic void setDataSource(DataSource dataSource) throws IfsException
dataSource
- database connection factoryIfsException
- if the operation failspublic DataSource getDataSource() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.