你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RetryingEventArgs Class
- java.
lang. Object - EventArgs
- com.
microsoft. azure. elasticdb. core. commons. transientfaulthandling. RetryingEventArgs
- com.
public class RetryingEventArgs
Shard management retrying event arguments.
Constructor Summary
Constructor | Description |
---|---|
RetryingEventArgs(int retryCount, Duration delay, RuntimeException ex) |
Initializes a new instance of the RetryingEventArgs class. |
RetryingEventArgs(RetryingEventArgs arg) |
Initializes new instance of RetryingEventArgs class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | getCurrentRetryCount() |
Duration | getDelay() |
RuntimeException | getLastException() |
Constructor Details
RetryingEventArgs
public RetryingEventArgs(int retryCount, Duration delay, RuntimeException ex)
Initializes a new instance of the RetryingEventArgs class.
Parameters:
retryCount
- The current retry attempt count.
delay
- The delay that indicates how long the current thread will be suspended before the next iteration is invoked.
ex
- The exception that caused the retry conditions to occur.
RetryingEventArgs
public RetryingEventArgs(RetryingEventArgs arg)
Initializes new instance of RetryingEventArgs class.
Parameters:
arg
- RetryingEventArgs from RetryPolicy.retrying event.
Method Details
getCurrentRetryCount
public int getCurrentRetryCount()
getDelay
public Duration getDelay()
getLastException
public RuntimeException getLastException()