Annotation Type TimeLimit


@InterceptorBinding @Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface TimeLimit
Used on SRA and Rollback annotations to indicate the maximum time that the SRA or participant should remain active for. When applied at the class level the timeout applies to any method that starts an SRA or causes a participant to be registered (ie when the bean class contains a Commit annotation). In the case of participants the corresponding method that is annotated with Rollback will be invoked when the time limit is reached.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
     
     
  • Element Details

    • limit

      long limit
      Default:
      0L
    • unit

      TimeUnit unit
      Default:
      SECONDS