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()
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java