Package org.hibernate.cfg
Interface AgroalSettings
-
- All Known Subinterfaces:
AvailableSettings
,JdbcSettings
- All Known Implementing Classes:
Environment
public interface AgroalSettings
-
-
Field Summary
Fields Modifier and Type Field Description static String
AGROAL_ACQUISITION_TIMEOUT
The maximum amount of time a thread can wait for a connection, after which an exception is thrown instead.static String
AGROAL_CONFIG_PREFIX
A setting prefix used to indicate settings that target thehibernate-agroal
integration.static String
AGROAL_FLUSH_ON_CLOSE
Iftrue
, connections will be flushed whenever they return to the pool.static String
AGROAL_IDLE_TIMEOUT
The maximum amount of time a connection can remain idle, after which it is evicted.static String
AGROAL_IDLE_VALIDATION_TIMEOUT
A foreground validation is executed if a connection has been idle in the pool for longer than this value.static String
AGROAL_INITIAL_SIZE
Initial size of the connection pool.static String
AGROAL_INITIAL_SQL
An SQL command to be executed when a connection is created.static String
AGROAL_LEAK_TIMEOUT
The maximum amount of time a connection can remain out of the pool, after which it is reported as a leak.static String
AGROAL_MAX_LIFETIME
The maximum amount of time a connection can live, after which it is evicted.static String
AGROAL_MAX_SIZE
The maximum size of the connection pool.static String
AGROAL_MIN_SIZE
The ninimum size of the connection pool.static String
AGROAL_VALIDATE_ON_BORROW
Iftrue
, connections will receive foreground validation on every acquisition regardless ofAGROAL_IDLE_VALIDATION_TIMEOUT
.static String
AGROAL_VALIDATION_TIMEOUT
Background validation is executed at intervals of this value.
-
-
-
Field Detail
-
AGROAL_CONFIG_PREFIX
static final String AGROAL_CONFIG_PREFIX
A setting prefix used to indicate settings that target thehibernate-agroal
integration.- See Also:
- Constant Field Values
-
AGROAL_MAX_SIZE
static final String AGROAL_MAX_SIZE
The maximum size of the connection pool.There is no default, this setting is mandatory.
- See Also:
- Constant Field Values
-
AGROAL_MIN_SIZE
static final String AGROAL_MIN_SIZE
The ninimum size of the connection pool.The default is zero.
- See Also:
- Constant Field Values
-
AGROAL_INITIAL_SIZE
static final String AGROAL_INITIAL_SIZE
Initial size of the connection pool.The default is zero.
- See Also:
- Constant Field Values
-
AGROAL_MAX_LIFETIME
static final String AGROAL_MAX_LIFETIME
The maximum amount of time a connection can live, after which it is evicted.The default is zero, resulting in no restriction on connection lifetime.
Parsed as a
Duration
.
-
AGROAL_LEAK_TIMEOUT
static final String AGROAL_LEAK_TIMEOUT
The maximum amount of time a connection can remain out of the pool, after which it is reported as a leak.The default is zero, resulting in no checks for connection leaks.
Parsed as a
Duration
.
-
AGROAL_IDLE_TIMEOUT
static final String AGROAL_IDLE_TIMEOUT
The maximum amount of time a connection can remain idle, after which it is evicted.The default is zero, resulting in connections never being considered idle.
Parsed as a
Duration
.
-
AGROAL_ACQUISITION_TIMEOUT
static final String AGROAL_ACQUISITION_TIMEOUT
The maximum amount of time a thread can wait for a connection, after which an exception is thrown instead.The default is zero, resulting in threads waiting indefinitely.
Parsed as a
Duration
.
-
AGROAL_VALIDATION_TIMEOUT
static final String AGROAL_VALIDATION_TIMEOUT
Background validation is executed at intervals of this value.The default is zero, resulting in background validation not being performed.
Parsed as a
Duration
.
-
AGROAL_IDLE_VALIDATION_TIMEOUT
static final String AGROAL_IDLE_VALIDATION_TIMEOUT
A foreground validation is executed if a connection has been idle in the pool for longer than this value.The default is zero, resulting in foreground validation not being performed.
Parsed as a
Duration
.
-
AGROAL_INITIAL_SQL
static final String AGROAL_INITIAL_SQL
An SQL command to be executed when a connection is created.- See Also:
- Constant Field Values
-
AGROAL_FLUSH_ON_CLOSE
static final String AGROAL_FLUSH_ON_CLOSE
Iftrue
, connections will be flushed whenever they return to the pool.The default is
false
.- Since:
- agroal-api 1.6
- See Also:
- Constant Field Values
-
AGROAL_VALIDATE_ON_BORROW
static final String AGROAL_VALIDATE_ON_BORROW
Iftrue
, connections will receive foreground validation on every acquisition regardless ofAGROAL_IDLE_VALIDATION_TIMEOUT
.The default is
false
.- Since:
- agroal-api 2.3
- See Also:
- Constant Field Values
-
-