ChainedCommonStreamBuilder<ChainedLogicalStreamBuilder>, CommonOptions, ChainedLogicalStreamBuilder, LogicalReplicationOptionspublic class LogicalStreamBuilder extends AbstractStreamBuilder<ChainedLogicalStreamBuilder> implements ChainedLogicalStreamBuilder, LogicalReplicationOptions
slotName, startPosition, statusIntervalMs| Constructor | Description |
|---|---|
LogicalStreamBuilder(StartLogicalReplicationCallback startCallback) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getSlotName() |
Required parameter for logical replication.
|
java.util.Properties |
getSlotOptions() |
Parameters for output plugin.
|
LogSequenceNumber |
getStartLSNPosition() |
|
int |
getStatusInterval() |
Specifies the number of millisecond between status packets sent back to the server.
|
protected ChainedLogicalStreamBuilder |
self() |
|
PGReplicationStream |
start() |
Open logical replication stream.
|
ChainedLogicalStreamBuilder |
withSlotOption(java.lang.String optionName,
boolean optionValue) |
|
ChainedLogicalStreamBuilder |
withSlotOption(java.lang.String optionName,
int optionValue) |
|
ChainedLogicalStreamBuilder |
withSlotOption(java.lang.String optionName,
java.lang.String optionValue) |
|
ChainedLogicalStreamBuilder |
withSlotOptions(java.util.Properties options) |
|
ChainedLogicalStreamBuilder |
withStartPosition(LogSequenceNumber lsn) |
Specify start position from which backend will start stream changes.
|
withSlotName, withStatusIntervalwithSlotName, withStatusIntervalpublic LogicalStreamBuilder(StartLogicalReplicationCallback startCallback)
startCallback - not null callback that should be execute after build parameters for start
replicationprotected ChainedLogicalStreamBuilder self()
self in class AbstractStreamBuilder<ChainedLogicalStreamBuilder>public PGReplicationStream start() throws java.sql.SQLException
ChainedLogicalStreamBuilderstart in interface ChainedLogicalStreamBuilderjava.sql.SQLException - if there are errorspublic java.lang.String getSlotName()
LogicalReplicationOptionsgetSlotName in interface CommonOptionsgetSlotName in interface LogicalReplicationOptionspublic ChainedLogicalStreamBuilder withStartPosition(LogSequenceNumber lsn)
ChainedCommonStreamBuilderwithStartPosition in interface ChainedCommonStreamBuilder<ChainedLogicalStreamBuilder>withStartPosition in class AbstractStreamBuilder<ChainedLogicalStreamBuilder>lsn - not null position from which need start replicate changespublic ChainedLogicalStreamBuilder withSlotOption(java.lang.String optionName, boolean optionValue)
withSlotOption in interface ChainedLogicalStreamBuilderoptionName - name of optionoptionValue - boolean valuepublic ChainedLogicalStreamBuilder withSlotOption(java.lang.String optionName, int optionValue)
withSlotOption in interface ChainedLogicalStreamBuilderoptionName - name of optionoptionValue - integer valuepublic ChainedLogicalStreamBuilder withSlotOption(java.lang.String optionName, java.lang.String optionValue)
withSlotOption in interface ChainedLogicalStreamBuilderoptionName - name of optionoptionValue - String valuepublic ChainedLogicalStreamBuilder withSlotOptions(java.util.Properties options)
withSlotOptions in interface ChainedLogicalStreamBuilderoptions - propertiespublic LogSequenceNumber getStartLSNPosition()
getStartLSNPosition in interface CommonOptionspublic java.util.Properties getSlotOptions()
LogicalReplicationOptionsgetSlotOptions in interface LogicalReplicationOptionspublic int getStatusInterval()
CommonOptionsgetStatusInterval in interface CommonOptionsCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.