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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Java