类 HikariCheckpointRestoreLifecycle

java.lang.Object
org.springframework.boot.jdbc.HikariCheckpointRestoreLifecycle
所有已实现的接口:
Lifecycle

public class HikariCheckpointRestoreLifecycle extends Object implements 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

      @Deprecated(since="3.4.0", forRemoval=true) public HikariCheckpointRestoreLifecycle(DataSource dataSource)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Creates a new HikariCheckpointRestoreLifecycle that will allow the given dataSource to participate in checkpoint-restore. The dataSource is unwrapped to a HikariDataSource. 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 new HikariCheckpointRestoreLifecycle that will allow the given dataSource to participate in checkpoint-restore. The dataSource is unwrapped to a HikariDataSource. If such unwrapping is not possible, the lifecycle will have no effect.
      参数:
      dataSource - the checkpoint-restore participant
      applicationContext - the application context
      从以下版本开始:
      3.4.0
  • 方法详细资料