| Modifier and Type | Field and Description |
|---|---|
| private final Properties | |
| private final StartLogicalReplicationCallback |
| Access | Constructor and Description |
|---|---|
| public | LogicalStreamBuilder(StartLogicalReplicationCallback
not null callback that should be execute after build parameters for start
replication startCallback)
|
| slotOptions | back to summary |
|---|---|
| private final Properties slotOptions | |
| startCallback | back to summary |
|---|---|
| private final StartLogicalReplicationCallback startCallback | |
| LogicalStreamBuilder | back to summary |
|---|---|
public LogicalStreamBuilder(StartLogicalReplicationCallback startCallback)
| |
| getSlotName | back to summary |
|---|---|
| public @Nullable String getSlotName() Implements org. Doc from org. Required parameter for logical replication. | |
| getSlotOptions | back to summary |
|---|---|
| public Properties getSlotOptions() Implements org. Doc from org. Parameters for output plugin. Parameters will be set to output plugin that register for specified replication slot name.
| |
| getStartLSNPosition | back to summary |
|---|---|
| public LogSequenceNumber getStartLSNPosition() Implements org.
| |
| getStatusInterval | back to summary |
|---|---|
| public int getStatusInterval() Implements org. Doc from org. Specifies the number of millisecond between status packets sent back to the server. This allows for easier monitoring of the progress from server. A value of zero disables the periodic status updates completely, although an update will still be sent when requested by the server, to avoid timeout disconnect. The default value is 10 seconds.
| |
| self | back to summary |
|---|---|
| protected ChainedLogicalStreamBuilder self() Implements abstract org.
| |
| start | back to summary |
|---|---|
| public PGReplicationStream start() throws SQLException Implements org. Doc from org. Open logical replication stream.
| |
| withSlotOption | back to summary |
|---|---|
| public ChainedLogicalStreamBuilder withSlotOption(String optionName, boolean optionValue) Implements org.
| |
| withSlotOption | back to summary |
|---|---|
| public ChainedLogicalStreamBuilder withSlotOption(String optionName, int optionValue) Implements org.
| |
| withSlotOption | back to summary |
|---|---|
| public ChainedLogicalStreamBuilder withSlotOption(String optionName, String optionValue) Implements org.
| |
| withSlotOptions | back to summary |
|---|---|
| public ChainedLogicalStreamBuilder withSlotOptions(Properties options) Implements org.
| |
| withStartPosition | back to summary |
|---|---|
| public ChainedLogicalStreamBuilder withStartPosition(LogSequenceNumber lsn) Overrides org. Implements org. Doc from org. Specify start position from which backend will start stream changes. If parameter will not specify, streaming starts from restart_lsn. For more details see pg_replication_slots description.
| |