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, String userName)InfinispanTransaction(String transactionId, Scn startScn, Instant changeTime, String userName, 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()Get the number of events participating in the transaction.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
-
-
-
-
Constructor Detail
-
InfinispanTransaction
public InfinispanTransaction(String transactionId, Scn startScn, Instant changeTime, String userName)
-
InfinispanTransaction
@VisibleForMarshalling public InfinispanTransaction(String transactionId, Scn startScn, Instant changeTime, String userName, int numberOfEvents)
-
-
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.
-
getEventId
public String getEventId(int index)
-
toString
public String toString()
- Overrides:
toStringin classAbstractTransaction
-
-