Returned keys of CREATE_REPLICATION_SLOT:
=> the slot name
=> LSN at which we became consistent
=> exported snapshot's name (may be null)
=> output plugin (may be null)
| Modifier and Type | Field and Description |
|---|---|
| private final LogSequenceNumber | |
| private final @Nullable String | |
| private final ReplicationType | |
| private final String | |
| private final @Nullable String |
| Access | Constructor and Description |
|---|---|
| public | ReplicationSlotInfo(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, @Nullable String snapshotName, @Nullable String outputPlugin)
|
| Modifier and Type | Method and Description |
|---|---|
| public LogSequenceNumber | Returns: LogSequenceNumber with the consistent_pointLSN at which we became consistent. |
| public @Nullable String | |
| public ReplicationType | Returns: ReplicationType, PHYSICAL or LOGICALReplication type of the slot created, might be PHYSICAL or LOGICAL. |
| public String | |
| public @Nullable String | Returns: exported snapshot_name (may benull)Exported snapshot name at the point of replication slot creation. |
| consistentPoint | back to summary |
|---|---|
| private final LogSequenceNumber consistentPoint | |
| outputPlugin | back to summary |
|---|---|
| private final @Nullable String outputPlugin | |
| replicationType | back to summary |
|---|---|
| private final ReplicationType replicationType | |
| slotName | back to summary |
|---|---|
| private final String slotName | |
| snapshotName | back to summary |
|---|---|
| private final @Nullable String snapshotName | |
| ReplicationSlotInfo | back to summary |
|---|---|
| public ReplicationSlotInfo(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, @Nullable String snapshotName, @Nullable String outputPlugin) | |
| getConsistentPoint | back to summary |
|---|---|
| public LogSequenceNumber getConsistentPoint() LSN at which we became consistent.
| |
| getOutputPlugin | back to summary |
|---|---|
| public @Nullable String getOutputPlugin() Output Plugin used on slot creation. | |
| getReplicationType | back to summary |
|---|---|
| public ReplicationType getReplicationType() Replication type of the slot created, might be PHYSICAL or LOGICAL.
| |
| getSlotName | back to summary |
|---|---|
| public String getSlotName() Replication slot name.
| |
| getSnapshotName | back to summary |
|---|---|
| public @Nullable String getSnapshotName() Exported snapshot name at the point of replication slot creation. As long as the exporting transaction remains open, other transactions can import its snapshot, and thereby be guaranteed that they see exactly the same view of the database that the first transaction sees. | |