Annotation Interface TCC


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @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.
  • Element Details

    • timeLimit

      long timeLimit
      Default:
      0L
    • timeUnit

      ChronoUnit timeUnit
      Default:
      SECONDS