Property | Type | Description | |
---|---|---|---|
DEFAULT_MAX_ATTEMPTS | int |
Method | Description | |
---|---|---|
CanRetry ( IRetryContext context ) : bool |
Test for retryable operation based on the status.
|
|
Close ( IRetryContext context ) : void |
The close.
|
|
Open ( IRetryContext parent ) : IRetryContext |
Get a status object that can be used to track the current operation according to this policy. Has to be aware of the latest exception and the number of attempts.
|
|
RegisterException ( IRetryContext context, |
Update the status with another attempted retry and the latest exception.
|
|
SimpleRetryPolicy ( ) : System |
Initializes a new instance of the SimpleRetryPolicy class.
|
|
SimpleRetryPolicy ( int maxAttempts, bool>.IDictionary |
Initializes a new instance of the SimpleRetryPolicy class.
|
|
ToString ( ) : string |
The to string.
|
Method | Description | |
---|---|---|
RetryForException ( |
Delegates to an exception classifier.
|
public CanRetry ( IRetryContext context ) : bool | ||
context | IRetryContext | The context. |
return | bool |
public Close ( IRetryContext context ) : void | ||
context | IRetryContext | The context. |
return | void |
public Open ( IRetryContext parent ) : IRetryContext | ||
parent | IRetryContext | The parent. |
return | IRetryContext |
public RegisterException ( IRetryContext context, |
||
context | IRetryContext | The context. |
exception | The throwable. | |
return | void |
public SimpleRetryPolicy ( int maxAttempts, bool>.IDictionary |
||
maxAttempts | int | The max attempts. |
retryableExceptions | bool>.IDictionary | The retryable exceptions. |
return | System |