Interface IRetryStrategy

  • All Known Implementing Classes:
    SimpleRetryStrategy

    public interface IRetryStrategy
    A Retry Strategy used to retry a function without a return value (@see Action0) and functions with return values (@see Func1.
    • 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.