クラス ReplicationSlotInfo
java.lang.Object
org.postgresql.replication.ReplicationSlotInfo
Information returned on replication slot creation.
Returned keys of CREATE_REPLICATION_SLOT:
- slot_name String
=>
the slot name - consistent_point String
=>
LSN at which we became consistent - snapshot_name String
=>
exported snapshot's name (may benull
) - output_plugin String
=>
output plugin (may benull
)
-
コンストラクタの概要
コンストラクタコンストラクタ説明ReplicationSlotInfo
(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, @Nullable String snapshotName, @Nullable String outputPlugin) -
メソッドの概要
-
コンストラクタの詳細
-
ReplicationSlotInfo
public ReplicationSlotInfo(String slotName, ReplicationType replicationType, LogSequenceNumber consistentPoint, @Nullable String snapshotName, @Nullable String outputPlugin)
-
-
メソッドの詳細
-
getSlotName
Replication slot name.- 戻り値:
- the slot name
-
getReplicationType
Replication type of the slot created, might be PHYSICAL or LOGICAL.- 戻り値:
- ReplicationType, PHYSICAL or LOGICAL
-
getConsistentPoint
LSN at which we became consistent.- 戻り値:
- LogSequenceNumber with the consistent_point
-
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.
- 戻り値:
- exported snapshot_name (may be
null
)
-
getOutputPlugin
Output Plugin used on slot creation.- 戻り値:
- output_plugin (may be
null
)
-