org.postgresql.replication.fluent.logical
public class LogicalCreateSlotBuilder extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder> implements ChainedLogicalCreateSlotBuilder
slotName
Constructor and Description |
---|
LogicalCreateSlotBuilder(BaseConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withSlotName
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 void make() throws SQLException
ChainedCommonCreateSlotBuilder
make
in interface ChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
SQLException
- on errorCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.