Class ReplicationRequest
java.lang.Object
io.r2dbc.postgresql.replication.ReplicationRequest
Value object representing a request to create a replication slot.
Use logical()  to configure a logical replication stream and physical() to configure a physical one.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFluent builder interface to configure a logical replication stream.static interfaceFluent builder interface to configure the slot name for a logical replication slot.static interfacestatic interfaceFluent builder interface to configure a physical replication stream.static interfaceFluent builder interface to configure the slot name for a physical replication slot.static interfacestatic interfaceFluent builder interface fragment to associate the builder with the slot name.static interfaceFluent builder interface fragment to associate the builder with slot options.static interfacestatic interfaceFluent builder interface fragment to associate the builder with status interval updates. - 
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 logicalReplicationRequest.logical(ReplicationSlot replicationSlot) Create a new builder to configure a logicalReplicationRequestfromReplicationSlot.physical()Create a new builder to configure a physicalReplicationRequest. 
- 
Method Details
- 
logical
Create a new builder to configure a logicalReplicationRequest.- Returns:
 - a new builder to configure a logical 
ReplicationRequest. 
 - 
physical
Create a new builder to configure a physicalReplicationRequest.- Returns:
 - a new builder to configure a physical 
ReplicationRequest. 
 - 
logical
public static ReplicationRequest.LogicalReplicationRequestBuilder logical(ReplicationSlot replicationSlot) Create a new builder to configure a logicalReplicationRequestfromReplicationSlot.- Parameters:
 replicationSlot- the replication slot to initializeReplicationRequest.LogicalReplicationRequestBuilder.- Returns:
 - a new builder to configure a logical 
ReplicationRequestfromReplicationSlot. 
 - 
asSQL
 - 
getReplicationType
Returns the replication type of the slot,PHYSICALorLOGICAL.- Returns:
 ReplicationType,PHYSICALorLOGICAL
 - 
getStatusInterval
- Returns:
 - status update interval
 
 
 -