DataSourcePoolMetadata

Provides access meta-data that is commonly available from most pooled DataSource implementations.

Author

Stephane Nicoll

Artsiom Yudovin

Since

2.0.0

Inheritors

Functions

Link copied to clipboard
abstract fun getActive(): Integer
Return the current number of active connections that have been allocated from the data source or null if that information is not available.
Link copied to clipboard
The default auto-commit state of connections created by this pool.
Link copied to clipboard
open fun getIdle(): Integer
Return the number of established but idle connections.
Link copied to clipboard
abstract fun getMax(): Integer
Return the maximum number of active connections that can be allocated at the same time or -1 if there is no limit.
Link copied to clipboard
abstract fun getMin(): Integer
Return the minimum number of idle connections in the pool or null if that information is not available.
Link copied to clipboard
abstract fun getUsage(): Float
Return the usage of the pool as value between 0 and 1 (or -1 if the pool is not limited).
Link copied to clipboard
abstract fun getValidationQuery(): String
Return the query to use to validate that a connection is valid or null if that information is not available.