Interface Transaction
- All Known Implementing Classes:
AbstractTransaction,InfinispanTransaction,MemoryTransaction
public interface Transaction
Contract for an Oracle transaction.
- Author:
- Chris Cranford
-
Method Summary
Modifier and TypeMethodDescriptionGet the time when the transaction startedintHelper method to get the next event identifier for the transaction.intGet the number of events participating in the transaction.Get the system change number of when the transaction startedGet the transaction identifierGet the username associated with the transactionvoidstart()Helper method that resets the event identifier back to0.
-
Method Details
-
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.
-