Class LazyFaultTolerance<T>
- java.lang.Object
-
- io.smallrye.faulttolerance.core.apiimpl.LazyFaultTolerance<T>
-
- All Implemented Interfaces:
FaultTolerance<T>
public final class LazyFaultTolerance<T> extends Object implements FaultTolerance<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.smallrye.faulttolerance.api.FaultTolerance
FaultTolerance.Builder<T extends Object,R extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcall(Callable<T> action)<U> FaultTolerance<U>cast()<U> FaultTolerance<U>castAsync(Class<?> asyncType)Tget(Supplier<T> action)Class<?>internalGetAsyncType()voidrun(Runnable action)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.faulttolerance.api.FaultTolerance
adaptCallable, adaptRunnable, adaptSupplier
-
-
-
-
Method Detail
-
internalGetAsyncType
public Class<?> internalGetAsyncType()
-
call
public T call(Callable<T> action) throws Exception
- Specified by:
callin interfaceFaultTolerance<T>- Throws:
Exception
-
run
public void run(Runnable action)
- Specified by:
runin interfaceFaultTolerance<T>
-
cast
public <U> FaultTolerance<U> cast()
- Specified by:
castin interfaceFaultTolerance<T>
-
castAsync
public <U> FaultTolerance<U> castAsync(Class<?> asyncType)
- Specified by:
castAsyncin interfaceFaultTolerance<T>
-
-