public static interface ReplicationConnection.Builder
ReplicationConnection| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_DROP_SLOT_ON_CLOSE |
static String |
DEFAULT_PLUGIN_NAME |
static String |
DEFAULT_SLOT_NAME
Default replication settings
|
| Modifier and Type | Method and Description |
|---|---|
ReplicationConnection |
build()
Creates a new
ReplicationConnection instance |
ReplicationConnection.Builder |
dropSlotOnClose(boolean dropSlotOnClose)
Whether or not to drop the replication slot once the replication connection closes
|
ReplicationConnection.Builder |
statusUpdateIntervalMillis(Integer statusUpdateIntervalMillis)
The number of milli-seconds the replication connection should periodically send updates to the server.
|
ReplicationConnection.Builder |
withPlugin(String pluginName)
Sets the name for the PG logical decoding plugin
|
ReplicationConnection.Builder |
withSlot(String slotName)
Sets the name for the PG logical replication slot
|
static final String DEFAULT_SLOT_NAME
static final String DEFAULT_PLUGIN_NAME
static final boolean DEFAULT_DROP_SLOT_ON_CLOSE
ReplicationConnection.Builder withSlot(String slotName)
slotName - the name of the slot, may not be null.DEFAULT_SLOT_NAMEReplicationConnection.Builder withPlugin(String pluginName)
pluginName - the name of the slot, may not be null.DEFAULT_PLUGIN_NAMEReplicationConnection.Builder dropSlotOnClose(boolean dropSlotOnClose)
dropSlotOnClose - true if the slot should be dropped once the connection is closed, false otherwiseDEFAULT_DROP_SLOT_ON_CLOSEReplicationConnection.Builder statusUpdateIntervalMillis(Integer statusUpdateIntervalMillis)
statusUpdateIntervalMillis - a number of milli-seconds; null or non-positive value causes Postgres' default to be appliedReplicationConnection build()
ReplicationConnection instanceCopyright © 2017 JBoss by Red Hat. All rights reserved.