Package io.smallrye.faulttolerance.api
Interface FaultTolerance<T>
@Deprecated(forRemoval=true)
@Experimental("first attempt at providing programmatic API")
public interface FaultTolerance<T>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.useGuard.BuilderorTypedGuard.Builder -
Method Summary
Modifier and TypeMethodDescriptionadaptCallable(Callable<T> action) Deprecated, for removal: This API element is subject to removal in a future version.default RunnableadaptRunnable(Runnable action) Deprecated, for removal: This API element is subject to removal in a future version.adaptSupplier(Supplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.<U> FaultTolerance<U> cast()Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard, which unifies synchronous and asynchronous invocations<U> FaultTolerance<U> Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard, which unifies synchronous and asynchronous invocationsstatic CircuitBreakerMaintenanceDeprecated, for removal: This API element is subject to removal in a future version.static <T> FaultTolerance.Builder<T, FaultTolerance<T>> create()Deprecated, for removal: This API element is subject to removal in a future version.static <T> FaultTolerance.Builder<CompletionStage<T>, FaultTolerance<CompletionStage<T>>> Deprecated, for removal: This API element is subject to removal in a future version.static <T> FaultTolerance.Builder<CompletionStage<T>, Callable<CompletionStage<T>>> createAsyncCallable(Callable<CompletionStage<T>> action) Deprecated, for removal: This API element is subject to removal in a future version.createAsyncRunnable(Runnable action) Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard; there's no direct support for guardingRunnables, but adapting toSupplier<Void>by usingadaptSuppliershould be close enoughstatic <T> FaultTolerance.Builder<CompletionStage<T>, Supplier<CompletionStage<T>>> createAsyncSupplier(Supplier<CompletionStage<T>> action) Deprecated, for removal: This API element is subject to removal in a future version.static <T> FaultTolerance.Builder<T, Callable<T>> createCallable(Callable<T> action) Deprecated, for removal: This API element is subject to removal in a future version.static FaultTolerance.Builder<Void, Runnable> createRunnable(Runnable action) Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard; there's no direct support for guardingRunnables, but adapting toSupplier<Void>by usingadaptSuppliershould be close enoughstatic <T> FaultTolerance.Builder<T, Supplier<T>> createSupplier(Supplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version.default TDeprecated, for removal: This API element is subject to removal in a future version.default voidDeprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
circuitBreakerMaintenance
Deprecated, for removal: This API element is subject to removal in a future version. -
createCallable
@Deprecated(forRemoval=true) static <T> FaultTolerance.Builder<T,Callable<T>> createCallable(Callable<T> action) Deprecated, for removal: This API element is subject to removal in a future version. -
createSupplier
@Deprecated(forRemoval=true) static <T> FaultTolerance.Builder<T,Supplier<T>> createSupplier(Supplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version. -
createRunnable
@Deprecated(forRemoval=true) static FaultTolerance.Builder<Void,Runnable> createRunnable(Runnable action) Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard; there's no direct support for guardingRunnables, but adapting toSupplier<Void>by usingadaptSuppliershould be close enough -
create
Deprecated, for removal: This API element is subject to removal in a future version. -
createAsyncCallable
@Deprecated(forRemoval=true) static <T> FaultTolerance.Builder<CompletionStage<T>,Callable<CompletionStage<T>>> createAsyncCallable(Callable<CompletionStage<T>> action) Deprecated, for removal: This API element is subject to removal in a future version. -
createAsyncSupplier
@Deprecated(forRemoval=true) static <T> FaultTolerance.Builder<CompletionStage<T>,Supplier<CompletionStage<T>>> createAsyncSupplier(Supplier<CompletionStage<T>> action) Deprecated, for removal: This API element is subject to removal in a future version. -
createAsyncRunnable
@Deprecated(forRemoval=true) static FaultTolerance.Builder<CompletionStage<Void>,Runnable> createAsyncRunnable(Runnable action) Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard; there's no direct support for guardingRunnables, but adapting toSupplier<Void>by usingadaptSuppliershould be close enough -
createAsync
@Deprecated(forRemoval=true) static <T> FaultTolerance.Builder<CompletionStage<T>,FaultTolerance<CompletionStage<T>>> createAsync()Deprecated, for removal: This API element is subject to removal in a future version. -
call
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
get
Deprecated, for removal: This API element is subject to removal in a future version. -
run
Deprecated, for removal: This API element is subject to removal in a future version. -
adaptCallable
Deprecated, for removal: This API element is subject to removal in a future version. -
adaptSupplier
Deprecated, for removal: This API element is subject to removal in a future version. -
adaptRunnable
Deprecated, for removal: This API element is subject to removal in a future version. -
cast
Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard, which unifies synchronous and asynchronous invocations -
castAsync
Deprecated, for removal: This API element is subject to removal in a future version.useGuardorTypedGuard, which unifies synchronous and asynchronous invocations
-
GuardorTypedGuard