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 inherited from class org.postgresql.replication.fluent.AbstractCreateSlotBuilder
connection, slotName, temporaryOption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmake()
Create slot with specified parameters in database.protected ChainedLogicalCreateSlotBuilder
self()
withOutputPlugin
(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 Details
-
LogicalCreateSlotBuilder
-
-
Method Details
-
self
- Specified by:
self
in classAbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
-
withOutputPlugin
Description copied from interface:ChainedLogicalCreateSlotBuilder
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
- Specified by:
withOutputPlugin
in interfaceChainedLogicalCreateSlotBuilder
- Parameters:
outputPlugin
- not null name of the output plugin used for logical decoding- Returns:
- the logical slot builder
-
make
Description copied from interface:ChainedCommonCreateSlotBuilder
Create slot with specified parameters in database.- Specified by:
make
in interfaceChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
- Returns:
- ReplicationSlotInfo with the information of the created slot.
- Throws:
SQLException
- on error
-