Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MethodInvoker
A method invoker used by rpc to invoke a requested method. Method invokers should only get created once for a class, never multiple times during rpc processing.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    callMethod(@NonNull Object... arguments)
    Invokes the target method of this invoker using the given arguments.
  • Method Details

    • callMethod

      @Nullable @Nullable Object callMethod(@NonNull @NonNull Object... arguments)
      Invokes the target method of this invoker using the given arguments.
      Parameters:
      arguments - the arguments to use when invoking the target method.
      Returns:
      the return value of the method invocation.
      Throws:
      NullPointerException - if the given arguments array is null.