RetryBehavior Class
- java.
lang. Object - com.
microsoft. azure. elasticdb. core. commons. transientfaulthandling. RetryBehavior
- com.
public class RetryBehavior
Defines the retry behavior to use for detecting transient errors.
Constructor Summary
Constructor | Description |
---|---|
RetryBehavior(Function<Exception, Boolean> transientErrorDetector) |
Initializes an instance of the RetryBehavior class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Retry |
getDefaultRetryBehavior()
Gets the default retry behavior. The default retry behavior has a built-in set of exceptions that are considered transient. You may create and use a custom RetryBehavior object in order to treat additional exceptions as transient. |
Function<Exception, Boolean> | getTransientErrorDetector() |
Constructor Details
RetryBehavior
public RetryBehavior(Function
Initializes an instance of the RetryBehavior class.
Parameters:
Method Details
getDefaultRetryBehavior
public static RetryBehavior getDefaultRetryBehavior()
Gets the default retry behavior. The default retry behavior has a built-in set of exceptions that are considered transient. You may create and use a custom RetryBehavior object in order to treat additional exceptions as transient.
getTransientErrorDetector
public Function
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應