Class SimpleRetryStrategy

    • Constructor Detail

      • SimpleRetryStrategy

        public SimpleRetryStrategy​(int maxRetries)
    • Method Detail

      • doWithRetry

        public void doWithRetry​(Action0 action)
        Description copied from interface: IRetryStrategy
        Retries a function without a return value.
        Specified by:
        doWithRetry in interface IRetryStrategy
        Parameters:
        action - Action to invoke.
      • getWithRetry

        public <TResult> TResult getWithRetry​(Func1<TResult> function)
        Description copied from interface: IRetryStrategy
        Retries a function with a return values.
        Specified by:
        getWithRetry in interface IRetryStrategy
        Type Parameters:
        TResult - Result of the invocation.
        Parameters:
        function - Function to invoke.
        Returns:
        Result of the invocation.