Annotation Type TimeLimit
-
@InterceptorBinding @Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface TimeLimit
Used onSRAandRollbackannotations 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 withRollbackwill be invoked when the time limit is reached.
-
-
-
unit
TimeUnit unit
- Default:
- java.util.concurrent.TimeUnit.SECONDS
-
-