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

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

    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)
     
    instance(String identifier)
     

    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
    • instance

      public GuardImpl instance(String identifier)