类 HikariCheckpointRestoreLifecycle
java.lang.Object
org.springframework.boot.jdbc.HikariCheckpointRestoreLifecycle
- 所有已实现的接口:
Lifecycle
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.- 从以下版本开始:
- 3.2.0
- 作者:
- Christoph Strobl, Andy Wilkinson, Moritz Halbritter
-
构造器概要
构造器构造器说明HikariCheckpointRestoreLifecycle(DataSource dataSource) 已过时, 待删除: 此 API 元素将从以后的版本中删除。HikariCheckpointRestoreLifecycle(DataSource dataSource, ConfigurableApplicationContext applicationContext) Creates a newHikariCheckpointRestoreLifecyclethat will allow the givendataSourceto participate in checkpoint-restore. -
方法概要
-
构造器详细资料
-
HikariCheckpointRestoreLifecycle
@Deprecated(since="3.4.0", forRemoval=true) public HikariCheckpointRestoreLifecycle(DataSource dataSource) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.4.0 for removal in 4.0.0 in favor ofHikariCheckpointRestoreLifecycle(DataSource, ConfigurableApplicationContext)Creates a newHikariCheckpointRestoreLifecyclethat will allow the givendataSourceto participate in checkpoint-restore. ThedataSourceisunwrappedto aHikariDataSource. If such unwrapping is not possible, the lifecycle will have no effect.- 参数:
dataSource- the checkpoint-restore participant
-
HikariCheckpointRestoreLifecycle
public HikariCheckpointRestoreLifecycle(DataSource dataSource, ConfigurableApplicationContext applicationContext) Creates a newHikariCheckpointRestoreLifecyclethat will allow the givendataSourceto participate in checkpoint-restore. ThedataSourceisunwrappedto aHikariDataSource. If such unwrapping is not possible, the lifecycle will have no effect.- 参数:
dataSource- the checkpoint-restore participantapplicationContext- the application context- 从以下版本开始:
- 3.4.0
-
-
方法详细资料
HikariCheckpointRestoreLifecycle(DataSource, ConfigurableApplicationContext)