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
FieldsFields inherited from class AbstractCreateSlotBuilder
connection, slotName, temporaryOption -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake()Create slot with specified parameters in database.protected ChainedLogicalCreateSlotBuilderself()withOutputPlugin(String outputPlugin) Output plugin that should be use for decode physical represent WAL to some logical form.Methods inherited from class AbstractCreateSlotBuilder
withSlotName, withTemporaryOptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChainedCommonCreateSlotBuilder
withSlotName, withTemporaryOption
-
Field Details
-
outputPlugin
-
-
Constructor Details
-
LogicalCreateSlotBuilder
-
-
Method Details
-
self
- Specified by:
selfin classAbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
-
withOutputPlugin
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
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:
SQLException- on error
-