Interface HistoryRecorder

  • All Superinterfaces:
    AutoCloseable
    All Known Implementing Classes:
    NeverHistoryRecorder

    @Incubating
    public interface HistoryRecorder
    extends AutoCloseable
    This interface defines how a custom recorder can be supplied to record LogMiner results.
    • Method Detail

      • prepare

        void prepare​(OracleStreamingChangeEventSourceMetrics streamingMetrics,
                     JdbcConfiguration jdbcConfiguration,
                     long retentionHours)
        Prepares the history recorder
        Parameters:
        streamingMetrics - the streaming metrics
        jdbcConfiguration - the jdbc configuration
        retentionHours - the history retention hours
      • record

        void record​(Scn scn,
                    String tableName,
                    String segOwner,
                    int operationCode,
                    Timestamp changeTime,
                    String transactionId,
                    int csf,
                    String redoSql)
        Records the LogMiner entry.
        Parameters:
        scn - the entry's SCN
        tableName - the table name
        segOwner - the table owner
        operationCode - the operation code
        changeTime - the time the operation occurred
        transactionId - the transaction identifier
        csf - the continuation sequence flag
        redoSql - the redo SQL that performed the operation
      • flush

        void flush()
        Flushes the LogMiner history captured by the recorder.