Interface Transaction
-
- All Known Implementing Classes:
AbstractTransaction,InfinispanTransaction,MemoryTransaction
public interface TransactionContract for an Oracle transaction.- Author:
- Chris Cranford
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstantgetChangeTime()Get the time when the transaction startedintgetNextEventId()Helper method to get the next event identifier for the transaction.intgetNumberOfEvents()ScngetStartScn()Get the system change number of when the transaction startedStringgetTransactionId()Get the transaction identifiervoidstart()Helper method that resets the event identifier back to0.
-
-
-
Method Detail
-
getTransactionId
String getTransactionId()
Get the transaction identifier- Returns:
- the transaction unique identifier, never
null
-
getStartScn
Scn getStartScn()
Get the system change number of when the transaction started- Returns:
- the system change number, never
null
-
getChangeTime
Instant getChangeTime()
Get the time when the transaction started- Returns:
- the timestamp of the transaction, never
null
-
getNumberOfEvents
int getNumberOfEvents()
-
getNextEventId
int getNextEventId()
Helper method to get the next event identifier for the transaction.- Returns:
- the next event identifier
-
start
void start()
Helper 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.
-
-