Class Retrier
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.azure.util.Retrier
-
public class Retrier extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Retrier.ThrowingRunnable
static interface
Retrier.ThrowingSupplier<T>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Retrier.ThrowingRunnable runnable)
<T> T
execute(Retrier.ThrowingSupplier<T> supplier)
static Retrier
withParams(int maxAttempts, int intervalMs)
-
-
-
Method Detail
-
withParams
public static Retrier withParams(int maxAttempts, int intervalMs)
-
execute
public <T> T execute(Retrier.ThrowingSupplier<T> supplier) throws java.io.IOException
- Throws:
java.io.IOException
-
execute
public void execute(Retrier.ThrowingRunnable runnable) throws java.io.IOException
- Throws:
java.io.IOException
-
-