Package org.springframework.ai.retry
Class RetryUtils
java.lang.Object
org.springframework.ai.retry.RetryUtils
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 Summary
Modifier and TypeFieldDescriptionstatic final org.springframework.web.client.ResponseErrorHandler
static final org.springframework.retry.support.RetryTemplate
static final org.springframework.retry.support.RetryTemplate
Useful in testing scenarios where you don't want to wait long for retry and now show stack trace -
Constructor Summary
-
Method Summary
-
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_TEMPLATEUseful in testing scenarios where you don't want to wait long for retry and now show stack trace
-
-
Constructor Details
-
RetryUtils
public RetryUtils()
-