Annotation Interface TransactionTimeout


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface TransactionTimeout
Annotation for specifying the transaction timeout of a newly started transaction when invoking an EJB business method.
Author:
William DeCoste
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Units used for the specified value.
    long
    The new timeout value, in seconds.
  • Element Details

    • value

      long value
      The new timeout value, in seconds. If this parameter is 0, the timeout value is reset to the default value.
      See Also:
      • javax.transaction.TransactionManager#setTransactionTimeout(int)
      Default:
      0L
    • unit

      TimeUnit unit
      Units used for the specified value. The minimum granularity is SECONDS, specifying a lower one will result in a deployment failure.
      Since:
      2.0
      Default:
      SECONDS