Top Fields Constructors Methods
org.postgresql.replication.fluent

public abstract Class AbstractStreamBuilder<T extends ChainedCommonStreamBuilder<T>>

extends Object
implements ChainedCommonStreamBuilder<T extends ChainedCommonStreamBuilder<T>>
Class Inheritance
All Implemented Interfaces
org.postgresql.replication.fluent.ChainedCommonStreamBuilder
Known Direct Subclasses
org.postgresql.replication.fluent.logical.LogicalStreamBuilder, org.postgresql.replication.fluent.physical.PhysicalStreamBuilder
Imports
org.postgresql.replication.LogSequenceNumber, org.checkerframework.checker.nullness.qual.Nullable, java.util.concurrent.TimeUnit

Field Summary

Modifier and TypeField and Description
private static final int
protected @Nullable String
protected LogSequenceNumber
protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract T
self()

public T
withSlotName(String
not null replication slot already exists on server.
slotName
)

Implements org.postgresql.replication.fluent.ChainedCommonStreamBuilder.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.

public T
withStartPosition(LogSequenceNumber
not null position from which need start replicate changes
lsn
)

Implements org.postgresql.replication.fluent.ChainedCommonStreamBuilder.withStartPosition.

Specify start position from which backend will start stream changes.

public T
withStatusInterval(int
positive time
time
,
TimeUnit
format for specified time
format
)

Implements org.postgresql.replication.fluent.ChainedCommonStreamBuilder.withStatusInterval.

Specifies the number of time between status packets sent back to the server.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_STATUS_INTERVALback to summary
private static final int DEFAULT_STATUS_INTERVAL
slotNameback to summary
protected @Nullable String slotName
startPositionback to summary
protected LogSequenceNumber startPosition
statusIntervalMsback to summary
protected int statusIntervalMs

Constructor Detail

AbstractStreamBuilderback to summary
public AbstractStreamBuilder()

Method Detail

selfback to summary
protected abstract T self()
withSlotNameback to summary
public T withSlotName(String slotName)

Implements org.postgresql.replication.fluent.ChainedCommonStreamBuilder.withSlotName.

Doc from org.postgresql.replication.fluent.ChainedCommonStreamBuilder.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.

Parameters
slotName:String

not null replication slot already exists on server.

Returns:T

this instance as a fluent interface

Annotations
@Override
withStartPositionback to summary
public T withStartPosition(LogSequenceNumber lsn)

Implements org.postgresql.replication.fluent.ChainedCommonStreamBuilder.withStartPosition.

Doc from org.postgresql.replication.fluent.ChainedCommonStreamBuilder.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.

Parameters
lsn:LogSequenceNumber

not null position from which need start replicate changes

Returns:T

not null fluent

Annotations
@Override
withStatusIntervalback to summary
public T withStatusInterval(int time, TimeUnit format)

Implements org.postgresql.replication.fluent.ChainedCommonStreamBuilder.withStatusInterval.

Doc from org.postgresql.replication.fluent.ChainedCommonStreamBuilder.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.

Parameters
time:int

positive time

format:TimeUnit

format for specified time

Returns:T

not null fluent

Annotations
@Override