Top Fields Constructors Methods
org.postgresql.replication.fluent

public abstract Class AbstractCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>>

extends Object
implements ChainedCommonCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>>
Class Inheritance
All Implemented Interfaces
org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder
Known Direct Subclasses
org.postgresql.replication.fluent.logical.LogicalCreateSlotBuilder, org.postgresql.replication.fluent.physical.PhysicalCreateSlotBuilder
Imports
org.postgresql.core.BaseConnection, .ServerVersion, org.postgresql.util.GT, org.checkerframework.checker.nullness.qual.Nullable, java.sql.SQLFeatureNotSupportedException

Field Summary

Modifier and TypeField and Description
protected BaseConnection
protected @Nullable String
protected boolean

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract T
self()

public T
withSlotName(String
not null unique replication slot name for create.
slotName
)

Implements org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.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
withTemporaryOption()

Implements org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.withTemporaryOption.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
protected BaseConnection connection
slotNameback to summary
protected @Nullable String slotName
temporaryOptionback to summary
protected boolean temporaryOption

Constructor Detail

AbstractCreateSlotBuilderback to summary
protected AbstractCreateSlotBuilder(BaseConnection connection)

Method Detail

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

Implements org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.withSlotName.

Doc from org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.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 unique replication slot name for create.

Returns:T

T a slot builder

Annotations
@Override
withTemporaryOptionback to summary
public T withTemporaryOption() throws SQLFeatureNotSupportedException

Implements org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.withTemporaryOption.

Doc from org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.withTemporaryOption.

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

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