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()Get the number of events participating in the transaction.ScngetStartScn()Get the system change number of when the transaction startedStringgetTransactionId()Get the transaction identifierStringgetUserName()Get the username associated with the transactionvoidstart()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
-
getUserName
String getUserName()
Get the username associated with the transaction- Returns:
- the username, may be
null
-
getNumberOfEvents
int getNumberOfEvents()
Get the number of events participating in the transaction.- Returns:
- the number of transaction events
-
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.
-
-