Package io.pravega.common.util
Class Retry.RetryAndThrowBase<ThrowsT extends java.lang.Exception>
- java.lang.Object
-
- io.pravega.common.util.Retry.RetryAndThrowBase<ThrowsT>
-
- Direct Known Subclasses:
Retry.RetryAndThrowConditionally,Retry.RetryAndThrowExceptionally,Retry.RetryUnconditionally
- Enclosing class:
- Retry
public abstract static class Retry.RetryAndThrowBase<ThrowsT extends java.lang.Exception> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <RetryT extends java.lang.Exception,ReturnT>
ReturnTrun(Retry.Retryable<ReturnT,RetryT,ThrowsT> r)<ReturnT> java.util.concurrent.CompletableFuture<ReturnT>runAsync(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ReturnT>> r, java.util.concurrent.ScheduledExecutorService executorService)java.util.concurrent.CompletableFuture<java.lang.Void>runInExecutor(java.lang.Runnable task, java.util.concurrent.ScheduledExecutorService executorService)
-
-
-
Method Detail
-
run
public <RetryT extends java.lang.Exception,ReturnT> ReturnT run(Retry.Retryable<ReturnT,RetryT,ThrowsT> r) throws ThrowsT extends java.lang.Exception
- Throws:
ThrowsT extends java.lang.Exception
-
runInExecutor
public java.util.concurrent.CompletableFuture<java.lang.Void> runInExecutor(java.lang.Runnable task, java.util.concurrent.ScheduledExecutorService executorService)
-
runAsync
public <ReturnT> java.util.concurrent.CompletableFuture<ReturnT> runAsync(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ReturnT>> r, java.util.concurrent.ScheduledExecutorService executorService)
-
-