Class ReplicationSlotRequest
java.lang.Object
io.r2dbc.postgresql.replication.ReplicationSlotRequest
Value object representing a request to create a replication slot.
Use logical() to configure a logical replication slot and physical() to configure a physical one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFluent builder interface to configure a logical replication slot.static interfaceFluent builder interface to configure the slot name for a logical replication slot.static interfacestatic interfaceFluent builder interface to configure a physical replication slot.static interfaceFluent builder interface to configure the slot name for a physical replication slot.static interfaceFluent builder interface fragment to associate the builder with an output plugin.static interfaceFluent builder interface fragment to associate the builder with a slot name.static interfaceFluent builder interface fragment to associate the builder with the temporary option. -
Method Summary
Modifier and TypeMethodDescriptionabstract StringasSQL()Renders this request as SQL.Returns the replication type of the slot,PHYSICALorLOGICAL.logical()Create a new builder to configure a logicalReplicationSlotRequest.physical()Create a new builder to configure a physicalReplicationSlotRequest.
-
Method Details
-
logical
Create a new builder to configure a logicalReplicationSlotRequest.- Returns:
- a new builder to configure a logical
ReplicationSlotRequest.
-
physical
Create a new builder to configure a physicalReplicationSlotRequest.- Returns:
- a new builder to configure a physical
ReplicationSlotRequest.
-
asSQL
-
getReplicationType
Returns the replication type of the slot,PHYSICALorLOGICAL.- Returns:
ReplicationType,PHYSICALorLOGICAL
-