public interface HikariConfigMBean
| Modifier and Type | Method and Description |
|---|---|
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 maximum number of connections that HikariCP will keep 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 |
getMinimumIdle()
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 |
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 |
setMinimumIdle(int minIdle)
The property controls the minimum number of idle connections that HikariCP tries to maintain in the pool,
including both idle and in-use connections.
|
long 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 getMinimumIdle()
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 setMinimumIdle(int minIdle)
minIdle - the minimum number of idle connections in the pool to maintainint 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 © 2014 Zaxxer.com. All rights reserved.