HikariCheckpointRestoreLifecycle

Lifecycle for a HikariDataSource allowing it to participate in checkpoint-restore. When stopped, and the data source allows it, its pool is suspended, blocking any attempts to borrow connections. Open and idle connections are then evicted. When subsequently started, the pool is resumed if necessary.

Author

Christoph Strobl

Andy Wilkinson

Moritz Halbritter

Since

3.2.0

Constructors

Link copied to clipboard
constructor(dataSource: DataSource)
Creates a new HikariCheckpointRestoreLifecycle that will allow the given dataSource to participate in checkpoint-restore.
constructor(dataSource: DataSource, applicationContext: ConfigurableApplicationContext)
Creates a new HikariCheckpointRestoreLifecycle that will allow the given dataSource to participate in checkpoint-restore.

Functions

Link copied to clipboard
open fun isRunning(): Boolean
Link copied to clipboard
open fun start()
Link copied to clipboard
open fun stop()