Package org.jgroups.blocks
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
-
Method Details
-
invoke
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 methodmethod_id- The ID of the method. The implementation must assign unique IDs and associate them somehow with a method to invokeargs- 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 anInvocationTargetException.
-