Interface MethodInvoker

All Known Implementing Classes:
ProgrammaticUPerf

public interface MethodInvoker
Can be used by RpcDispatcher / MethodCall to invoke a method against a given target object
Since:
4.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(Object target, short method_id, Object[] args)
    An implementation invokes a method associated with a given ID and the given args against a target object
  • Method Details

    • invoke

      Object invoke(Object target, short method_id, Object[] args) throws Exception
      An implementation invokes a method associated with a given ID and the given args against a target object
      Parameters:
      target - The object against which to invoke the method
      method_id - The ID of the method. The implementation must assign unique IDs and associate them somehow with a method to invoke
      args - The arguments of the invocation
      Returns:
      The result. It may be null if a method returns void
      Throws:
      Exception - Thrown if the invocation threw an exception. The real exception may be wrapped in an InvocationTargetException.