Class RetryPolicies

java.lang.Object
io.helidon.config.RetryPolicies

public class RetryPolicies extends Object
Class provides access to built-in RetryPolicy implementations.
See Also:
  • Method Details

    • repeat

      public static SimpleRetryPolicy.Builder repeat(int retries)
      Creates a new instance of SimpleRetryPolicy.Builder class with a number of retries as a parameter.

      The default values are:

      The default RetryPolicy is justCall().

      Parameters:
      retries - a number of retries, excluding the first call
      Returns:
      a new builder
    • justCall

      public static RetryPolicy justCall()
      An implementation that invokes the requested method just once, without any execute.
      Returns:
      a default execute policy