Class InfinispanTransaction
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.processor.AbstractTransaction
-
- io.debezium.connector.oracle.logminer.processor.infinispan.InfinispanTransaction
-
- All Implemented Interfaces:
Transaction
public class InfinispanTransaction extends AbstractTransaction
A concrete implementation ofAbstractTransactionfor the Infinispan processor.- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private intnumberOfEvents
-
Constructor Summary
Constructors Constructor Description InfinispanTransaction(String transactionId, Scn startScn, Instant changeTime)InfinispanTransaction(String transactionId, Scn startScn, Instant changeTime, int numberOfEvents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEventId(int index)intgetNextEventId()Helper method to get the next event identifier for the transaction.intgetNumberOfEvents()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, hashCode
-
-
-
-
Method Detail
-
getNumberOfEvents
public int getNumberOfEvents()
-
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.
-
getEventId
public String getEventId(int index)
-
toString
public String toString()
- Overrides:
toStringin classAbstractTransaction
-
-