public abstract class ReplicationRequest extends Object
Use logical() to configure a logical replication stream and physical() to configure a physical one.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReplicationRequest.LogicalReplicationRequestBuilder
Fluent builder interface to configure a logical replication stream.
|
static interface |
ReplicationRequest.LogicalReplicationStep1
Fluent builder interface to configure the slot name for a logical replication slot.
|
static interface |
ReplicationRequest.LogicalReplicationStep2 |
static interface |
ReplicationRequest.PhysicalReplicationRequestBuilder
Fluent builder interface to configure a physical replication stream.
|
static interface |
ReplicationRequest.PhysicalReplicationStep1
Fluent builder interface to configure the slot name for a physical replication slot.
|
static interface |
ReplicationRequest.PhysicalReplicationStep2 |
static interface |
ReplicationRequest.WithSlotName
Fluent builder interface fragment to associate the builder with the slot name.
|
static interface |
ReplicationRequest.WithSlotOption
Fluent builder interface fragment to associate the builder with slot options.
|
static interface |
ReplicationRequest.WithStartPosition |
static interface |
ReplicationRequest.WithStatusInterval
Fluent builder interface fragment to associate the builder with status interval updates.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
asSQL()
Renders this request as SQL.
|
ReplicationType |
getReplicationType()
Returns the replication type of the slot,
PHYSICAL or LOGICAL. |
Duration |
getStatusInterval() |
static ReplicationRequest.LogicalReplicationStep1 |
logical()
Create a new builder to configure a logical
ReplicationRequest. |
static ReplicationRequest.LogicalReplicationRequestBuilder |
logical(ReplicationSlot replicationSlot)
Create a new builder to configure a logical
ReplicationRequest from ReplicationSlot. |
static ReplicationRequest.PhysicalReplicationStep1 |
physical()
Create a new builder to configure a physical
ReplicationRequest. |
public static ReplicationRequest.LogicalReplicationStep1 logical()
ReplicationRequest.ReplicationRequest.public static ReplicationRequest.PhysicalReplicationStep1 physical()
ReplicationRequest.ReplicationRequest.public static ReplicationRequest.LogicalReplicationRequestBuilder logical(ReplicationSlot replicationSlot)
ReplicationRequest from ReplicationSlot.replicationSlot - the replication slot to initialize ReplicationRequest.LogicalReplicationRequestBuilder.ReplicationRequest from ReplicationSlot.public abstract String asSQL()
public ReplicationType getReplicationType()
PHYSICAL or LOGICAL.ReplicationType, PHYSICAL or LOGICALpublic Duration getStatusInterval()
Copyright © 2023. All rights reserved.