java.lang.Object
io.smallrye.faulttolerance.apiimpl.GuardImpl
All Implemented Interfaces:
io.smallrye.faulttolerance.api.Guard

public class GuardImpl extends Object implements io.smallrye.faulttolerance.api.Guard
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

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

    io.smallrye.faulttolerance.api.Guard.Builder
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    call(Callable<T> action, jakarta.enterprise.util.TypeLiteral<T> type)
     
    <T> T
    call(Callable<T> action, Class<T> type)
     
    <T> T
    get(Supplier<T> action, jakarta.enterprise.util.TypeLiteral<T> type)
     
    <T> T
    get(Supplier<T> action, Class<T> type)
     
    <V, T> T
    guard(Callable<T> action, AsyncInvocation<V,T> asyncInvocation, Consumer<io.smallrye.faulttolerance.core.FaultToleranceContext<?>> contextModifier)
     

    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.Guard

    adaptCallable, adaptCallable, adaptSupplier, adaptSupplier
  • Method Details

    • call

      public <T> T call(Callable<T> action, Class<T> type) throws Exception
      Specified by:
      call in interface io.smallrye.faulttolerance.api.Guard
      Throws:
      Exception
    • call

      public <T> T call(Callable<T> action, jakarta.enterprise.util.TypeLiteral<T> type) throws Exception
      Specified by:
      call in interface io.smallrye.faulttolerance.api.Guard
      Throws:
      Exception
    • get

      public <T> T get(Supplier<T> action, Class<T> type)
      Specified by:
      get in interface io.smallrye.faulttolerance.api.Guard
    • get

      public <T> T get(Supplier<T> action, jakarta.enterprise.util.TypeLiteral<T> type)
      Specified by:
      get in interface io.smallrye.faulttolerance.api.Guard
    • guard

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