Package io.hekate.rpc

Annotation Type RpcRetry

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String delay
      Delay in milliseconds between attempts.
      Class<? extends Throwable>[] errors
      Base types of errors that can be retried.
      String maxAttempts
      Maximum amount of attempts.
      String maxDelay
      Maximum delay in milliseconds between attempts.
      • maxAttempts

        String maxAttempts
        Maximum amount of attempts. Zero to disable retries, negative value for unlimited attempts.

        It is possible to use ${...} property placeholders when Hekate is running inside of a Spring Application Context.

        Returns:
        Maximum amount of attempts.
        See Also:
        RetryPolicy.maxAttempts(int)
        Default:
        ""
      • maxDelay

        String maxDelay
        Maximum delay in milliseconds between attempts.

        If this attribute is set then the ExponentialBackoffPolicy will be used to calculate delay between attempts. In such case the delay() attribute's value will be used as a base delay and the value of this attribute as a maximum delay.

        It is possible to use ${...} property placeholders when Hekate is running inside of a Spring Application Context.

        Returns:
        Maximum delay in milliseconds between attempts.
        See Also:
        RetryPolicy.withExponentialDelay(long, long)
        Default:
        ""