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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()Flushes the LogMiner history captured by the recorder.voidprepare(OracleStreamingChangeEventSourceMetrics streamingMetrics, JdbcConfiguration jdbcConfiguration, long retentionHours)Prepares the history recordervoidrecord(Scn scn, String tableName, String segOwner, int operationCode, Timestamp changeTime, String transactionId, int csf, String redoSql)Records the LogMiner entry.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
prepare
void prepare(OracleStreamingChangeEventSourceMetrics streamingMetrics, JdbcConfiguration jdbcConfiguration, long retentionHours)
Prepares the history recorder- Parameters:
streamingMetrics- the streaming metricsjdbcConfiguration- the jdbc configurationretentionHours- 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 SCNtableName- the table namesegOwner- the table owneroperationCode- the operation codechangeTime- the time the operation occurredtransactionId- the transaction identifiercsf- the continuation sequence flagredoSql- the redo SQL that performed the operation
-
flush
void flush()
Flushes the LogMiner history captured by the recorder.
-
-