Annotation Interface TCC
TCC annotation is to markup when to start/join the TCC transaction. This annotation can be added at class/method level. If this annotation is not present, then TCC library code will not be executed.
Starts new TCC transaction. If the TCC context header is null, a new TCC transaction id will be created. All the participants will receive this transaction id via header and confirm/cancel will be done based on this unique id.
-
Optional Element Summary
Optional Elements
-
Element Details
-
timeLimit
long timeLimit- Default:
0L
-
timeUnit
ChronoUnit timeUnit- Default:
SECONDS
-