Interface IRetryStrategy
-
- All Known Implementing Classes:
SimpleRetryStrategy
public interface IRetryStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoWithRetry(Action0 action)Retries a function without a return value.<TResult> TResultgetWithRetry(Func1<TResult> function)Retries a function with a return values.
-
-
-
Method Detail
-
doWithRetry
void doWithRetry(Action0 action)
Retries a function without a return value.- Parameters:
action- Action to invoke.
-
getWithRetry
<TResult> TResult getWithRetry(Func1<TResult> function)
Retries a function with a return values.- Type Parameters:
TResult- Result of the invocation.- Parameters:
function- Function to invoke.- Returns:
- Result of the invocation.
-
-