Class ConstantInvoker<V>

java.lang.Object
io.smallrye.faulttolerance.core.invocation.ConstantInvoker<V>
All Implemented Interfaces:
Invoker<V>

public class ConstantInvoker<V> extends Object implements Invoker<V>
  • Method Details

    • of

      public static <V> Invoker<V> of(V value)
    • parametersCount

      public int parametersCount()
      Specified by:
      parametersCount in interface Invoker<V>
    • getArgument

      public <T> T getArgument(int index, Class<T> parameterType)
      Specified by:
      getArgument in interface Invoker<V>
    • replaceArgument

      public <T> T replaceArgument(int index, Class<T> parameterType, Function<T,T> transformation)
      Specified by:
      replaceArgument in interface Invoker<V>
    • proceed

      public V proceed()
      Specified by:
      proceed in interface Invoker<V>