Class LazyFaultTolerance<T>

java.lang.Object
io.smallrye.faulttolerance.apiimpl.LazyFaultTolerance<T>
All Implemented Interfaces:
io.smallrye.faulttolerance.api.FaultTolerance<T>

public final class LazyFaultTolerance<T> extends Object implements io.smallrye.faulttolerance.api.FaultTolerance<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.smallrye.faulttolerance.api.FaultTolerance

    io.smallrye.faulttolerance.api.FaultTolerance.Builder<T,R>
  • Method Summary

    Modifier and Type
    Method
    Description
    call(Callable<T> action)
     
    call(Callable<T> action, io.smallrye.faulttolerance.core.metrics.MeteredOperationName meteredOperationName)
     
    <U> io.smallrye.faulttolerance.api.FaultTolerance<U>
     
    <U> io.smallrye.faulttolerance.api.FaultTolerance<U>
    castAsync(Class<?> asyncType)
     
    get(Supplier<T> action)
     
     
    void
    run(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 Details

    • internalGetAsyncType

      public Class<?> internalGetAsyncType()
    • call

      public T call(Callable<T> action, io.smallrye.faulttolerance.core.metrics.MeteredOperationName meteredOperationName) throws Exception
      Throws:
      Exception
    • call

      public T call(Callable<T> action) throws Exception
      Specified by:
      call in interface io.smallrye.faulttolerance.api.FaultTolerance<T>
      Throws:
      Exception
    • get

      public T get(Supplier<T> action)
      Specified by:
      get in interface io.smallrye.faulttolerance.api.FaultTolerance<T>
    • run

      public void run(Runnable action)
      Specified by:
      run in interface io.smallrye.faulttolerance.api.FaultTolerance<T>
    • cast

      public <U> io.smallrye.faulttolerance.api.FaultTolerance<U> cast()
      Specified by:
      cast in interface io.smallrye.faulttolerance.api.FaultTolerance<T>
    • castAsync

      public <U> io.smallrye.faulttolerance.api.FaultTolerance<U> castAsync(Class<?> asyncType)
      Specified by:
      castAsync in interface io.smallrye.faulttolerance.api.FaultTolerance<T>