Top Description Methods
org.postgresql.replication.fluent

public Interface CommonOptions

Known Direct Subinterfaces
org.postgresql.replication.fluent.logical.LogicalReplicationOptions, org.postgresql.replication.fluent.physical.PhysicalReplicationOptions
Imports
org.postgresql.replication.LogSequenceNumber, org.checkerframework.checker.nullness.qual.Nullable

Common parameters for logical and physical replication.

Method Summary

Modifier and TypeMethod and Description
public @Nullable String

Returns:

nullable replication slot name that already exists on server and free.
getSlotName
()

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 LogSequenceNumber

Returns:

the position to start replication. This cannot be null.
getStartLSNPosition
()

public int

Returns:

the current status interval
getStatusInterval
()

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

Method Detail

getSlotNameback to summary
public @Nullable String getSlotName()

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.

Returns:@Nullable String

nullable replication slot name that already exists on server and free.

getStartLSNPositionback to summary
public LogSequenceNumber getStartLSNPosition()
Returns:LogSequenceNumber

the position to start replication. This cannot be null.

getStatusIntervalback to summary
public int getStatusInterval()

Specifies the number of millisecond 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.

Returns:int

the current status interval