static <T> FaultTolerance.Builder<T,FaultTolerance<T>> |
FaultTolerance.create() |
Returns a builder that, at the end, returns a FaultTolerance object representing a set of configured
fault tolerance strategies.
|
static <T> FaultTolerance.Builder<CompletionStage<T>,FaultTolerance<CompletionStage<T>>> |
FaultTolerance.createAsync() |
Returns a builder that, at the end, returns a FaultTolerance object representing a set of configured
fault tolerance strategies.
|
static <T> FaultTolerance.Builder<CompletionStage<T>,Callable<CompletionStage<T>>> |
FaultTolerance.createAsyncCallable(Callable<CompletionStage<T>> action) |
Returns a builder that, at the end, returns a Callable guarding the given action.
|
static FaultTolerance.Builder<CompletionStage<Void>,Runnable> |
FaultTolerance.createAsyncRunnable(Runnable action) |
Returns a builder that, at the end, returns a Runnable guarding the given action.
|
static <T> FaultTolerance.Builder<CompletionStage<T>,Supplier<CompletionStage<T>>> |
FaultTolerance.createAsyncSupplier(Supplier<CompletionStage<T>> action) |
Returns a builder that, at the end, returns a Supplier guarding the given action.
|
static <T> FaultTolerance.Builder<T,Callable<T>> |
FaultTolerance.createCallable(Callable<T> action) |
Returns a builder that, at the end, returns a Callable guarding the given action.
|
static FaultTolerance.Builder<Void,Runnable> |
FaultTolerance.createRunnable(Runnable action) |
Returns a builder that, at the end, returns a Runnable guarding the given action.
|
static <T> FaultTolerance.Builder<T,Supplier<T>> |
FaultTolerance.createSupplier(Supplier<T> action) |
Returns a builder that, at the end, returns a Supplier guarding the given action.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.BulkheadBuilder.done() |
Returns the original fault tolerance builder.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.CircuitBreakerBuilder.done() |
Returns the original fault tolerance builder.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.FallbackBuilder.done() |
Returns the original fault tolerance builder.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.RateLimitBuilder.done() |
Returns the original fault tolerance builder.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.RetryBuilder.done() |
Returns the original fault tolerance builder.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.TimeoutBuilder.done() |
Returns the original fault tolerance builder.
|
<T,R> FaultTolerance.Builder<T,R> |
FaultToleranceSpi.newAsyncBuilder(Class<?> asyncType,
Function<FaultTolerance<T>,R> finisher) |
|
<T,R> FaultTolerance.Builder<T,R> |
FaultToleranceSpi.newBuilder(Function<FaultTolerance<T>,R> finisher) |
|
default FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.with(Consumer<FaultTolerance.Builder<T,R>> consumer) |
Syntactic sugar for calling the builder methods conditionally without breaking the invocation chain.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.withDescription(String value) |
Assigns a description to the resulting set of configured fault tolerance strategies.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.withThreadOffload(boolean value) |
Configures whether the guarded action should be offloaded to another thread.
|
FaultTolerance.Builder<T,R> |
FaultTolerance.Builder.withThreadOffloadExecutor(Executor executor) |
Configures the executor to use when offloading the guarded action to another thread.
|