io.vertx.up.uca.micro.invoke.Invoker Maven / Gradle / Ivy
package io.vertx.up.uca.micro.invoke;
import io.vertx.core.Vertx;
import io.vertx.core.eventbus.Message;
import io.vertx.up.commune.Envelop;
import java.lang.reflect.Method;
/**
* Replier for method invoking
*/
public interface Invoker {
/**
* Ensure correct invoking
*
* @param returnType Method return type
* @param paramCls Method parameters
*/
void ensure(final Class> returnType,
final Class> paramCls);
/**
* Invoke method and replying
*
* @param proxy Proxy object reference
* @param method Method reference for reflection
* @param message Message handler
*/
void invoke(Object proxy, Method method,
Message message);
/**
* Invoke method and ( Ipc ) then replying
*
* @param proxy Proxy object reference
* @param method Method reference for reflection
* @param message Message handler
* @param vertx Vertx reference
*/
void next(Object proxy, Method method,
Message message, Vertx vertx);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy