Interface ReplicationSlotRequest.LogicalSlotRequestBuilder
- All Superinterfaces:
ReplicationSlotRequest.LogicalSlotRequestBuilderStep1, ReplicationSlotRequest.LogicalSlotRequestBuilderStep2, ReplicationSlotRequest.WithOutputPlugin, ReplicationSlotRequest.WithSlotName, ReplicationSlotRequest.WithTemporary
- Enclosing class:
ReplicationSlotRequest
public static interface ReplicationSlotRequest.LogicalSlotRequestBuilder
extends ReplicationSlotRequest.LogicalSlotRequestBuilderStep1, ReplicationSlotRequest.LogicalSlotRequestBuilderStep2, ReplicationSlotRequest.WithTemporary
Fluent builder interface to configure a logical replication slot.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the logicalReplicationSlotRequest.Replication slots provide an automated way to ensure that the primary does not remove WAL segments until they have been received by all standbys, and that the primary does not remove rows which could cause a recovery conflict even when the standby is disconnected.Temporary slots are not saved to disk and are automatically dropped on error or when the session has finished.Methods inherited from interface ReplicationSlotRequest.LogicalSlotRequestBuilderStep2
outputPlugin
-
Method Details
-
slotName
Replication slots provide an automated way to ensure that the primary does not remove WAL segments until they have been received by all standbys, and that the primary does not remove rows which could cause a recovery conflict even when the standby is disconnected.- Specified by:
slotNamein interfaceReplicationSlotRequest.LogicalSlotRequestBuilderStep1- Specified by:
slotNamein interfaceReplicationSlotRequest.WithSlotName- Parameters:
slotName- replication slot name for create, must not benullor empty- Returns:
thisbuilder
-
temporary
ReplicationSlotRequest.LogicalSlotRequestBuilder temporary()Temporary slots are not saved to disk and are automatically dropped on error or when the session has finished.
This feature is only supported by PostgreSQL versions >= 10.
- Specified by:
temporaryin interfaceReplicationSlotRequest.WithTemporary- Returns:
thisbuilder
-
build
ReplicationSlotRequest build()Builds the logicalReplicationSlotRequest.- Returns:
- the logical
ReplicationSlotRequest.
-