Top Description Methods
org.postgresql.replication.fluent

public Interface ChainedCommonCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>>

Known Direct Subinterfaces
org.postgresql.replication.fluent.logical.ChainedLogicalCreateSlotBuilder, org.postgresql.replication.fluent.physical.ChainedPhysicalCreateSlotBuilder
Known Direct Implementers
org.postgresql.replication.fluent.AbstractCreateSlotBuilder
Imports
org.postgresql.replication.ReplicationSlotInfo, java.sql.SQLException, .SQLFeatureNotSupportedException

Fluent interface for specify common parameters for create Logical and Physical replication slot.

Method Summary

Modifier and TypeMethod and Description
public ReplicationSlotInfo

Returns:

ReplicationSlotInfo with the information of the created slot.
make
()

Create slot with specified parameters in database.

public T

Returns:

T a slot builder
withSlotName
(String
not null unique replication slot name for create.
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.

public T

Returns:

T a slot builder
withTemporaryOption
()

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

Method Detail

makeback to summary
public ReplicationSlotInfo make() throws SQLException

Create slot with specified parameters in database.

Returns:ReplicationSlotInfo

ReplicationSlotInfo with the information of the created slot.

Exceptions
SQLException:
on error
withSlotNameback to summary
public 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.

Parameters
slotName:String

not null unique replication slot name for create.

Returns:T

T a slot builder

withTemporaryOptionback to summary
public 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.

Returns:T

T a slot builder

Exceptions
SQLFeatureNotSupportedException:
thrown if PostgreSQL version is less than 10.