public interface HikariConfigMBean
Modifier and Type | Method and Description |
---|---|
int |
getAcquireIncrement()
This property controls the maximum number of connections that are acquired at one time,
with the exception of pool initialization.
|
int |
getAcquireRetries()
This is a per-connection attempt retry count used during new connection creation (acquisition).
|
long |
getAcquireRetryDelay()
This property controls the number of milliseconds to delay between attempts to acquire a connection
to the database.
|
long |
getConnectionTimeout()
This is for "legacy" databases that do not support the JDBC4
Connection.isValid() API. |
long |
getIdleTimeout()
This property controls the maximum amount of time (in milliseconds) that a connection is allowed to sit
idle in the pool.
|
long |
getLeakDetectionThreshold()
This property controls the amount of time that a connection can be out of the pool before a message is
logged indicating a possible connection leak.
|
int |
getMaximumPoolSize()
The property controls the minimum number of connections that HikariCP tries to maintain in the pool,
including both idle and in-use connections.
|
long |
getMaxLifetime()
This property controls the maximum lifetime of a connection in the pool.
|
int |
getMinimumPoolSize()
The property controls the maximum size that the pool is allowed to reach, including both idle and in-use
connections.
|
String |
getPoolName()
The name of the connection pool.
|
void |
setAcquireIncrement(int acquireIncrement)
This property controls the maximum number of connections that are acquired at one time,
with the exception of pool initialization.
|
void |
setAcquireRetries(int acquireRetries)
This is a per-connection attempt retry count used during new connection creation (acquisition).
|
void |
setAcquireRetryDelay(long acquireRetryDelayMs)
This property controls the number of milliseconds to delay between attempts to acquire a connection
to the database.
|
void |
setConnectionTimeout(long connectionTimeoutMs)
This is for "legacy" databases that do not support the JDBC4 {code Connection.isValid()} API.
|
void |
setIdleTimeout(long idleTimeoutMs)
This property controls the maximum amount of time (in milliseconds) that a connection is allowed to sit
idle in the pool.
|
void |
setLeakDetectionThreshold(long leakDetectionThresholdMs)
This property controls the amount of time that a connection can be out of the pool before a message is
logged indicating a possible connection leak.
|
void |
setMaximumPoolSize(int maxPoolSize)
The property controls the maximum size that the pool is allowed to reach, including both idle and in-use
connections.
|
void |
setMaxLifetime(long maxLifetimeMs)
This property controls the maximum lifetime of a connection in the pool.
|
void |
setMinimumPoolSize(int minPoolSize)
The property controls the minimum number of connections that HikariCP tries to maintain in the pool,
including both idle and in-use connections.
|
int getAcquireIncrement()
void setAcquireIncrement(int acquireIncrement)
acquireIncrement
- the acquire incrementint getAcquireRetries()
getAcquireRetryDelay()
milliseconds
followed by another attempt, up to the number of retries configured by this property.void setAcquireRetries(int acquireRetries)
setAcquireRetryDelay(long)
milliseconds
followed by another attempt, up to the number of retries configured by this property.acquireRetries
- the acquire retry countlong getAcquireRetryDelay()
void setAcquireRetryDelay(long acquireRetryDelayMs)
acquireRetryDelayMs
- the acquire retry delay in millisecondslong getConnectionTimeout()
Connection.isValid()
API. This is the
query that will be executed just before a connection is given to you from the pool to validate that
the connection to the database is still alive. It is database dependent and should be a query that
takes very little processing by the database (eg. "VALUES 1"). See the {code getJdbc4ConnectionTest()} property
for a more efficent alive test. One of either this property or jdbc4ConnectionTest must be specified.void setConnectionTimeout(long connectionTimeoutMs)
setJdbc4ConnectionTest()
property
for a more efficent alive test. One of either this property or jdbc4ConnectionTest must be specified.connectionTimeoutMs
- the connection timeout in millisecondslong getIdleTimeout()
void setIdleTimeout(long idleTimeoutMs)
idleTimeoutMs
- the idle timeout in millisecondslong getLeakDetectionThreshold()
void setLeakDetectionThreshold(long leakDetectionThresholdMs)
leakDetectionThresholdMs
- the connection leak detection threshold in millisecondslong getMaxLifetime()
void setMaxLifetime(long maxLifetimeMs)
maxLifetimeMs
- the maximum connection lifetime in millisecondsint getMinimumPoolSize()
When the pool reaches this size, and no idle connections are available, calls to getConnection() will block for up to connectionTimeout milliseconds before timing out.
void setMinimumPoolSize(int minPoolSize)
minPoolSize
- the minimum number of connections in the poolint getMaximumPoolSize()
void setMaximumPoolSize(int maxPoolSize)
When the pool reaches this size, and no idle connections are available, calls to getConnection() will block for up to connectionTimeout milliseconds before timing out.
maxPoolSize
- the maximum number of connections in the poolString getPoolName()
Copyright © 2013 Zaxxer.com. All rights reserved.