Class TypedGuardImpl<V,T>

java.lang.Object
io.smallrye.faulttolerance.apiimpl.TypedGuardImpl<V,T>
All Implemented Interfaces:
io.smallrye.faulttolerance.api.TypedGuard<T>

public final class TypedGuardImpl<V,T> extends Object implements io.smallrye.faulttolerance.api.TypedGuard<T>
  • Method Details

    • call

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

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

      public T guard(Callable<T> action, AsyncInvocation<V,T> asyncInvocation, Consumer<io.smallrye.faulttolerance.core.FaultToleranceContext<?>> contextModifier) throws Exception
      Throws:
      Exception