インタフェース ChainedCommonStreamBuilder<T extends ChainedCommonStreamBuilder<T>>
- 既知のサブインタフェースのリスト:
ChainedLogicalStreamBuilder
,ChainedPhysicalStreamBuilder
- 既知の実装クラスのリスト:
AbstractStreamBuilder
,LogicalStreamBuilder
,PhysicalStreamBuilder
public interface ChainedCommonStreamBuilder<T extends ChainedCommonStreamBuilder<T>>
Fluent interface for specify common parameters for Logical and Physical replication.
-
メソッドの概要
修飾子とタイプメソッド説明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.Specify start position from which backend will start stream changes.withStatusInterval
(int time, TimeUnit format) Specifies the number of time between status packets sent back to the server.
-
メソッドの詳細
-
withSlotName
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 replication slot already exists on server.- 戻り値:
- this instance as a fluent interface
-
withStatusInterval
Specifies the number of time between status packets sent back to the server. This allows for easier monitoring of the progress from server. A value of zero disables the periodic status updates completely, although an update will still be sent when requested by the server, to avoid timeout disconnect. The default value is 10 seconds.- パラメータ:
time
- positive timeformat
- format for specified time- 戻り値:
- not null fluent
-
withStartPosition
Specify start position from which backend will start stream changes. If parameter will not specify, streaming starts from restart_lsn. For more details see pg_replication_slots description.- パラメータ:
lsn
- not null position from which need start replicate changes- 戻り値:
- not null fluent
-