インタフェース ChainedCommonCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>>

既知のサブインタフェースのリスト:
ChainedLogicalCreateSlotBuilder, ChainedPhysicalCreateSlotBuilder
既知の実装クラスのリスト:
AbstractCreateSlotBuilder, LogicalCreateSlotBuilder, PhysicalCreateSlotBuilder

public interface ChainedCommonCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>>
Fluent interface for specify common parameters for create Logical and Physical replication slot.
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    Create slot with specified parameters in database.
    withSlotName(String slotName)
    Replication slots provide an automated way to ensure that the master does not remove WAL segments until they have been received by all standbys, and that the master does not remove rows which could cause a recovery conflict even when the standby is disconnected.
    Temporary slots are not saved to disk and are automatically dropped on error or when the session has finished.
  • メソッドの詳細

    • withSlotName

      T withSlotName(String slotName)
      Replication slots provide an automated way to ensure that the master does not remove WAL segments until they have been received by all standbys, and that the master does not remove rows which could cause a recovery conflict even when the standby is disconnected.
      パラメータ:
      slotName - not null unique replication slot name for create.
      戻り値:
      T a slot builder
    • withTemporaryOption

      T withTemporaryOption() throws SQLFeatureNotSupportedException

      Temporary slots are not saved to disk and are automatically dropped on error or when the session has finished.

      This feature is only supported by PostgreSQL versions >= 10.

      戻り値:
      T a slot builder
      例外:
      SQLFeatureNotSupportedException - thrown if PostgreSQL version is less than 10.
    • make

      Create slot with specified parameters in database.
      戻り値:
      ReplicationSlotInfo with the information of the created slot.
      例外:
      SQLException - on error