public interface AgroalConnectionPoolConfiguration
Modifier and Type | Interface and Description |
---|---|
static interface |
AgroalConnectionPoolConfiguration.ConnectionValidator
Interface for custom connection validation strategies.
|
static interface |
AgroalConnectionPoolConfiguration.ExceptionSorter
Interface for custom exception sorter strategies.
|
Modifier and Type | Method and Description |
---|---|
Duration |
acquisitionTimeout()
The maximum amount of time a thread may be blocked waiting for a connection.
|
AgroalConnectionFactoryConfiguration |
connectionFactoryConfiguration()
Configuration for the connection factory.
|
AgroalConnectionPoolConfiguration.ConnectionValidator |
connectionValidator()
The connection validation method.
|
AgroalConnectionPoolConfiguration.ExceptionSorter |
exceptionSorter()
Allows a custom exception sorter.
|
boolean |
flushOnClose()
If connections should be flushed when returning to the pool.
|
Duration |
idleValidationTimeout()
Connections idle for longer than this time period are validated before being acquired (foreground validation).
|
int |
initialSize()
The number of connections to be created when the pool starts.
|
Duration |
leakTimeout()
Connections acquired for longer than this time period may be reported as leaking.
|
Duration |
maxLifetime()
Connections that are older than this time period are flushed from the pool.
|
int |
maxSize()
The maximum number of connections on the pool.
|
int |
minSize()
The minimum number of connections on the pool.
|
Duration |
reapTimeout()
Connections idle for longer than this time period are flushed from the pool.
|
void |
setAcquisitionTimeout(Duration timeout)
Sets a new amount of time a thread may be blocked.
|
void |
setMaxSize(int size)
Sets a new maximum number of connections on the pool.
|
void |
setMinSize(int size)
Sets a new minimum number of connections on the pool.
|
TransactionIntegration |
transactionIntegration()
The transaction layer integration to use.
|
Duration |
validationTimeout()
Connections idle for longer than this time period are validated (background validation).
|
AgroalConnectionFactoryConfiguration connectionFactoryConfiguration()
AgroalConnectionPoolConfiguration.ConnectionValidator connectionValidator()
AgroalConnectionPoolConfiguration.ExceptionSorter exceptionSorter()
TransactionIntegration transactionIntegration()
Duration idleValidationTimeout()
Duration.ZERO
means that a this feature is disabled.Duration leakTimeout()
Duration.ZERO
means that a this feature is disabled.Duration validationTimeout()
Duration.ZERO
means that a this feature is disabled.Duration reapTimeout()
Duration.ZERO
means that a this feature is disabled.Duration maxLifetime()
Duration.ZERO
means that a this feature is disabled.boolean flushOnClose()
int initialSize()
int minSize()
void setMinSize(int size)
int maxSize()
void setMaxSize(int size)
Duration acquisitionTimeout()
Duration.ZERO
means that a thread will wait indefinitely.void setAcquisitionTimeout(Duration timeout)
Duration.ZERO
means that a thread will wait indefinitely.Copyright © 2020 JBoss by Red Hat. All rights reserved.