Annotation Type TransactionConfiguration


  • @Inherited
    @Target({METHOD,TYPE})
    @Retention(RUNTIME)
    public @interface TransactionConfiguration
    This annotation can be used to configure a different transaction timeout than the default one for a method or a class.

    When defined on a method, it needs to be used on the entry method of the transaction.

    If defined on a class, it is equivalent to defining it on all the methods of the class marked with @Transactional. The configuration defined on a method takes precedence over the configuration defined on a class.

    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static int UNSET_TIMEOUT
      This value is used to specify that no transaction timeout is configured.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int timeout
      The transaction timeout in seconds.
    • Field Detail

      • UNSET_TIMEOUT

        static final int UNSET_TIMEOUT
        This value is used to specify that no transaction timeout is configured.
    • Element Detail

      • timeout

        int timeout
        The transaction timeout in seconds. Defaults to UNSET_TIMEOUT: no timeout configured.
        Returns:
        The transaction timeout in seconds.
        Default:
        -1