Annotation Type Retry

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<? extends Exception>[] on
      Declare the exception types the retry will be issued on.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean failInTransaction
      Fail if the current thread is enlisted in a running transaction.
      int times
      The number of retry attempts
    • Element Detail

      • on

        Class<? extends Exception>[] on
        Declare the exception types the retry will be issued on.
        Returns:
        exception types causing a retry
      • times

        int times
        The number of retry attempts
        Returns:
        retry attempts
        Default:
        1
      • failInTransaction

        boolean failInTransaction
        Fail if the current thread is enlisted in a running transaction.
        Returns:
        fail in case of a running transaction
        Default:
        true