Annotation Type 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.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.util.concurrent.TimeUnit unit
      Units used for the specified value.
      long value
      The new timeout value, in seconds.
    • Element Detail

      • 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

        java.util.concurrent.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:
        java.util.concurrent.TimeUnit.SECONDS