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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java