Class RetryUtils

java.lang.Object
org.springframework.ai.retry.RetryUtils

public abstract class RetryUtils extends Object
RetryUtils is a utility class for configuring and handling retry operations. It provides a default RetryTemplate and a default ResponseErrorHandler.
Since:
0.8.1
Author:
Christian Tzolov
  • Field Details

    • DEFAULT_RESPONSE_ERROR_HANDLER

      public static final org.springframework.web.client.ResponseErrorHandler DEFAULT_RESPONSE_ERROR_HANDLER
    • DEFAULT_RETRY_TEMPLATE

      public static final org.springframework.retry.support.RetryTemplate DEFAULT_RETRY_TEMPLATE
    • SHORT_RETRY_TEMPLATE

      public static final org.springframework.retry.support.RetryTemplate SHORT_RETRY_TEMPLATE
      Useful in testing scenarios where you don't want to wait long for retry and now show stack trace
  • Constructor Details

    • RetryUtils

      public RetryUtils()