Class RetryableOnResult<T,​E extends java.lang.Exception>

  • All Implemented Interfaces:
    Retryable<T,​E>

    public class RetryableOnResult<T,​E extends java.lang.Exception>
    extends java.lang.Object
    implements Retryable<T,​E>
    • Constructor Detail

      • RetryableOnResult

        public RetryableOnResult​(RetryableParameters param,
                                 java.util.function.Predicate<T> retryOn,
                                 java.util.function.Consumer<T> onResult)
      • RetryableOnResult

        public RetryableOnResult​(RetryableParameters param,
                                 java.util.function.Predicate<T> retryOn)
    • Method Detail

      • exec

        public T exec​(DelegateRetry<T,​E> delegate)
               throws E extends java.lang.Exception
        Specified by:
        exec in interface Retryable<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • execute

        public void execute​(DelegateRetryVoid<E> delegate)
                     throws E extends java.lang.Exception
        Specified by:
        execute in interface Retryable<T,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception