if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { if (retries > 0) { executor); } else { resultFuture.completeExceptionally(new RetryException("Could not complete the operation. Number of retries " + "has been exhausted.", throwable));
} catch (Exception e) { return FlinkCompletableFuture.completedExceptionally( new RetryException("Could not execute the provided operation.", e));
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { throwable = ExceptionUtils.stripExecutionException(throwable); (innerT, innerThrowable) -> scheduledFuture.cancel(false)); } else { RetryException retryException = new RetryException( "Could not complete the operation. Number of retries has been exhausted.", throwable);
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { if (retries > 0 && retryPredicate.test(throwable)) { "Number of retries has been exhausted." : "Exception is not retryable."; resultFuture.completeExceptionally(new RetryException( "Could not complete the operation. " + errorMsg, throwable));
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { resultFuture.completeExceptionally(throwable); } else { resultFuture.completeExceptionally( new RetryException("Could not satisfy the predicate within the allowed time."));
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { resultFuture.completeExceptionally(throwable); } else { resultFuture.completeExceptionally( new RetryException("Could not satisfy the predicate within the allowed time."));
} catch (Exception e) { return FlinkCompletableFuture.completedExceptionally( new RetryException("Could not execute the provided operation.", e));
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { if (retries > 0) { executor); } else { resultFuture.completeExceptionally(new RetryException("Could not complete the operation. Number of retries " + "has been exhausted.", throwable));
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { if (retries > 0) { executor); } else { resultFuture.completeExceptionally(new RetryException("Could not complete the operation. Number of retries " + "has been exhausted.", throwable));
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { resultFuture.completeExceptionally(throwable); } else { resultFuture.completeExceptionally( new RetryException("Could not satisfy the predicate within the allowed time."));
if (throwable != null) { if (throwable instanceof CancellationException) { resultFuture.completeExceptionally(new RetryException("Operation future was cancelled.", throwable)); } else { throwable = ExceptionUtils.stripExecutionException(throwable); (innerT, innerThrowable) -> scheduledFuture.cancel(false)); } else { RetryException retryException = new RetryException( "Could not complete the operation. Number of retries has been exhausted.", throwable);