public class LogicalCreateSlotBuilder extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder> implements ChainedLogicalCreateSlotBuilder
connection, slotName, temporaryOption
Constructor and Description |
---|
LogicalCreateSlotBuilder(BaseConnection connection) |
Modifier and Type | Method and Description |
---|---|
ReplicationSlotInfo |
make()
Create slot with specified parameters in database.
|
protected ChainedLogicalCreateSlotBuilder |
self() |
ChainedLogicalCreateSlotBuilder |
withOutputPlugin(String outputPlugin)
Output plugin that should be use for decode physical represent WAL to some logical form.
|
withSlotName, withTemporaryOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withSlotName, withTemporaryOption
public LogicalCreateSlotBuilder(BaseConnection connection)
protected ChainedLogicalCreateSlotBuilder self()
self
in class AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
public ChainedLogicalCreateSlotBuilder withOutputPlugin(String outputPlugin)
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
withOutputPlugin
in interface ChainedLogicalCreateSlotBuilder
outputPlugin
- not null name of the output plugin used for logical decodingpublic ReplicationSlotInfo make() throws SQLException
ChainedCommonCreateSlotBuilder
make
in interface ChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
SQLException
- on errorCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.