你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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