Package io.quarkus.neo4j.runtime
Class Neo4jConfiguration.Pool
- java.lang.Object
-
- io.quarkus.neo4j.runtime.Neo4jConfiguration.Pool
-
- Enclosing class:
- Neo4jConfiguration
static class Neo4jConfiguration.Pool extends Object
-
-
Field Summary
Fields Modifier and Type Field Description DurationconnectionAcquisitionTimeoutAcquisition of new connections will be attempted for at most configured timeout.DurationidleTimeBeforeConnectionTestPooled connections that have been idle in the pool for longer than this timeout will be tested before they are used again.booleanlogLeakedSessionsFlag, if leaked sessions logging is enabled.DurationmaxConnectionLifetimePooled connections older than this threshold will be closed and removed from the pool.intmaxConnectionPoolSizeThe maximum amount of connections in the connection pool towards a single database.booleanmetricsEnabledFlag, if metrics are enabled.
-
Constructor Summary
Constructors Constructor Description Pool()
-
-
-
Field Detail
-
metricsEnabled
@ConfigItem(name="metrics.enabled") public boolean metricsEnabled
Flag, if metrics are enabled.
-
logLeakedSessions
@ConfigItem public boolean logLeakedSessions
Flag, if leaked sessions logging is enabled.
-
maxConnectionPoolSize
@ConfigItem(defaultValue="100") public int maxConnectionPoolSize
The maximum amount of connections in the connection pool towards a single database.
-
idleTimeBeforeConnectionTest
@ConfigItem(defaultValue="-0.001S") public Duration idleTimeBeforeConnectionTest
Pooled connections that have been idle in the pool for longer than this timeout will be tested before they are used again. The value 0 means connections will always be tested for validity and negative values mean connections will never be tested.
-
maxConnectionLifetime
@ConfigItem(defaultValue="1H") public Duration maxConnectionLifetime
Pooled connections older than this threshold will be closed and removed from the pool.
-
connectionAcquisitionTimeout
@ConfigItem(defaultValue="1M") public Duration connectionAcquisitionTimeout
Acquisition of new connections will be attempted for at most configured timeout.
-
-