Package sonia.scm
Class TransactionId
java.lang.Object
sonia.scm.TransactionId
Id of the current transaction.
The transaction id is mainly used for logging and debugging.
- Since:
- 2.10.0
-
Field Summary
Fields -
Method Summary
-
Field Details
-
KEY
- See Also:
-
-
Method Details
-
set
Binds the given transaction id to the current thread.- Parameters:
transactionId
- transaction id
-
get
Returns an optional transaction id. If there is no transaction id bound to the thread, the method will return an empty optional.- Returns:
- optional transaction id
-
clear
public static void clear()Removes a bound transaction id from the current thread.
-