Interface AsyncUtils.ShouldRetry<T>

  • Enclosing class:
    AsyncUtils
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface AsyncUtils.ShouldRetry<T>
    • Method Detail

      • shouldRetry

        long shouldRetry​(T result,
                         Throwable exception,
                         long retryInterval)
        Returns:
        the retry interval in ms, or a negative value indicating retries should be aborted