Class V3PGReplicationStream

    • Field Detail

      • POSTGRES_EPOCH_2000_01_01

        public static final long POSTGRES_EPOCH_2000_01_01
        See Also:
        Constant Field Values
    • Constructor Detail

      • V3PGReplicationStream

        public V3PGReplicationStream​(CopyDual copyDual,
                                     LogSequenceNumber startLSN,
                                     long updateIntervalMs,
                                     ReplicationType replicationType)
        Parameters:
        copyDual - bidirectional copy protocol
        startLSN - the position in the WAL that we want to initiate replication from usually the currentLSN returned by calling pg_current_wal_lsn()for v10 above or pg_current_xlog_location() depending on the version of the server
        updateIntervalMs - the number of millisecond between status packets sent back to the server. A value of zero disables the periodic status updates completely, although an update will still be sent when requested by the server, to avoid timeout disconnect.
        replicationType - LOGICAL or PHYSICAL