Top Fields Constructors Methods
org.postgresql.replication.fluent.logical

public Class LogicalCreateSlotBuilder

extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
implements ChainedLogicalCreateSlotBuilder
Class Inheritance
All Implemented Interfaces
org.postgresql.replication.fluent.logical.ChainedLogicalCreateSlotBuilder, org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder
Static Imports
org.postgresql.util.internal.Nullness.castNonNull

Field Summary

Modifier and TypeField and Description
private @Nullable String
Inherited from org.postgresql.replication.fluent.AbstractCreateSlotBuilder:
connectionslotNametemporaryOption

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ReplicationSlotInfo
make()

Implements org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.make.

Create slot with specified parameters in database.

protected ChainedLogicalCreateSlotBuilder
public ChainedLogicalCreateSlotBuilder
withOutputPlugin(String
not null name of the output plugin used for logical decoding
outputPlugin
)

Implements org.postgresql.replication.fluent.logical.ChainedLogicalCreateSlotBuilder.withOutputPlugin.

Output plugin that should be use for decode physical represent WAL to some logical form.

Inherited from org.postgresql.replication.fluent.AbstractCreateSlotBuilder:
withSlotNamewithTemporaryOption

Field Detail

outputPluginback to summary
private @Nullable String outputPlugin

Constructor Detail

LogicalCreateSlotBuilderback to summary
public LogicalCreateSlotBuilder(BaseConnection connection)

Method Detail

makeback to summary
public ReplicationSlotInfo make() throws SQLException

Implements org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder.make.

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

Create slot with specified parameters in database.

Returns:ReplicationSlotInfo

ReplicationSlotInfo with the information of the created slot.

Annotations
@Override
Exceptions
SQLException:
on error
selfback to summary
protected ChainedLogicalCreateSlotBuilder self()

Implements abstract org.postgresql.replication.fluent.AbstractCreateSlotBuilder.self.

Annotations
@Override
withOutputPluginback to summary
public ChainedLogicalCreateSlotBuilder withOutputPlugin(String outputPlugin)

Implements org.postgresql.replication.fluent.logical.ChainedLogicalCreateSlotBuilder.withOutputPlugin.

Doc from org.postgresql.replication.fluent.logical.ChainedLogicalCreateSlotBuilder.withOutputPlugin.

Output plugin that should be use for decode physical represent WAL to some logical form. Output plugin should be installed on server(exists in shared_preload_libraries).

Package postgresql-contrib provides sample output plugin test_decoding that can be use for test logical replication api

Parameters
outputPlugin:String

not null name of the output plugin used for logical decoding

Returns:ChainedLogicalCreateSlotBuilder

the logical slot builder

Annotations
@Override