Class LogicalCreateSlotBuilder
- java.lang.Object
-
- org.postgresql.replication.fluent.AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
-
- org.postgresql.replication.fluent.logical.LogicalCreateSlotBuilder
-
- All Implemented Interfaces:
ChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>,ChainedLogicalCreateSlotBuilder
public class LogicalCreateSlotBuilder extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder> implements ChainedLogicalCreateSlotBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringoutputPlugin-
Fields inherited from class org.postgresql.replication.fluent.AbstractCreateSlotBuilder
connection, slotName, temporaryOption
-
-
Constructor Summary
Constructors Constructor Description LogicalCreateSlotBuilder(BaseConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationSlotInfomake()Create slot with specified parameters in database.protected ChainedLogicalCreateSlotBuilderself()ChainedLogicalCreateSlotBuilderwithOutputPlugin(java.lang.String outputPlugin)Output plugin that should be use for decode physical represent WAL to some logical form.-
Methods inherited from class org.postgresql.replication.fluent.AbstractCreateSlotBuilder
withSlotName, withTemporaryOption
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.postgresql.replication.fluent.ChainedCommonCreateSlotBuilder
withSlotName, withTemporaryOption
-
-
-
-
Constructor Detail
-
LogicalCreateSlotBuilder
public LogicalCreateSlotBuilder(BaseConnection connection)
-
-
Method Detail
-
self
protected ChainedLogicalCreateSlotBuilder self()
- Specified by:
selfin classAbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
-
withOutputPlugin
public ChainedLogicalCreateSlotBuilder withOutputPlugin(java.lang.String outputPlugin)
Description copied from interface:ChainedLogicalCreateSlotBuilderOutput 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
- Specified by:
withOutputPluginin interfaceChainedLogicalCreateSlotBuilder- Parameters:
outputPlugin- not null name of the output plugin used for logical decoding- Returns:
- the logical slot builder
-
make
public ReplicationSlotInfo make() throws java.sql.SQLException
Description copied from interface:ChainedCommonCreateSlotBuilderCreate slot with specified parameters in database.- Specified by:
makein interfaceChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>- Returns:
- ReplicationSlotInfo with the information of the created slot.
- Throws:
java.sql.SQLException- on error
-
-