public interface HikariConfigMXBean
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalog()
Get the default catalog name to be set on connections.
|
long |
getConnectionTimeout()
Get the maximum number of milliseconds that a client will wait for a connection from the pool.
|
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 minimum number of idle connections that HikariCP tries to maintain in the pool,
including both idle and in-use connections.
|
java.lang.String |
getPoolName()
The name of the connection pool.
|
long |
getValidationTimeout()
Get the maximum number of milliseconds that the pool will wait for a connection to be validated as
alive.
|
void |
setCatalog(java.lang.String catalog)
Set the default catalog name to be set on connections.
|
void |
setConnectionTimeout(long connectionTimeoutMs)
Set the maximum number of milliseconds that a client will wait for a connection from the pool.
|
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.
|
void |
setPassword(java.lang.String password)
Set the password used for authentication.
|
void |
setUsername(java.lang.String username)
Set the username used for authentication.
|
void |
setValidationTimeout(long validationTimeoutMs)
Sets the maximum number of milliseconds that the pool will wait for a connection to be validated as
alive.
|
long getConnectionTimeout()
DataSource.getConnection()
.void setConnectionTimeout(long connectionTimeoutMs)
DataSource.getConnection()
.connectionTimeoutMs
- the connection timeout in millisecondslong getValidationTimeout()
void setValidationTimeout(long validationTimeoutMs)
validationTimeoutMs
- the validation 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()
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 poolvoid setPassword(java.lang.String password)
password
- the database passwordvoid setUsername(java.lang.String username)
username
- the database usernamejava.lang.String getPoolName()
java.lang.String getCatalog()
void setCatalog(java.lang.String catalog)
WARNING: THIS VALUE SHOULD ONLY BE CHANGED WHILE THE POOL IS SUSPENDED, AFTER CONNECTIONS HAVE BEEN EVICTED.
catalog
- the catalog name, or nullCopyright © 2020 Zaxxer.com. All Rights Reserved.