Class MemoryTransaction
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.processor.AbstractTransaction
-
- io.debezium.connector.oracle.logminer.processor.memory.MemoryTransaction
-
- All Implemented Interfaces:
Transaction
public class MemoryTransaction extends AbstractTransaction
A concrete implementation of aAbstractTransactionfor the JVM heap memory processor.- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private List<LogMinerEvent>eventsprivate static org.slf4j.LoggerLOGGERprivate intnumberOfEvents
-
Constructor Summary
Constructors Constructor Description MemoryTransaction(String transactionId, Scn startScn, Instant changeTime, String userName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LogMinerEvent>getEvents()intgetNextEventId()Helper method to get the next event identifier for the transaction.intgetNumberOfEvents()Get the number of events participating in the transaction.voidremoveEventWithRowId(String rowId)voidstart()Helper method that resets the event identifier back to0.StringtoString()-
Methods inherited from class io.debezium.connector.oracle.logminer.processor.AbstractTransaction
equals, getChangeTime, getStartScn, getTransactionId, getUserName, hashCode
-
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
numberOfEvents
private int numberOfEvents
-
events
private List<LogMinerEvent> events
-
-
Method Detail
-
getNumberOfEvents
public int getNumberOfEvents()
Description copied from interface:TransactionGet the number of events participating in the transaction.- Returns:
- the number of transaction events
-
getNextEventId
public int getNextEventId()
Description copied from interface:TransactionHelper method to get the next event identifier for the transaction.- Returns:
- the next event identifier
-
start
public void start()
Description copied from interface:TransactionHelper method that resets the event identifier back to0. This should be called when a transactionSTARTevent is detected in the event stream. This is required when LOB support is enabled to facilitate the re-mining of existing events.
-
getEvents
public List<LogMinerEvent> getEvents()
-
removeEventWithRowId
public void removeEventWithRowId(String rowId)
-
toString
public String toString()
- Overrides:
toStringin classAbstractTransaction
-
-