All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ikasoa.rpc.handler.ClientInvocationHandler Maven / Gradle / Ivy

There is a newer version: 0.3.3-BETA3
Show newest version
package com.ikasoa.rpc.handler;

/**
 * 客户端调用拦截器接口
 * 
 * @author Larry
 * @version 0.1
 */
public interface ClientInvocationHandler {

	/**
	 * 开始
	 * 
	 * @param context
	 *            上下文
	 * @return ClientInvocationContext
	 */
	ClientInvocationContext before(ClientInvocationContext context);

	/**
	 * 执行前
	 * 
	 * @param context
	 *            上下文
	 * @return ClientInvocationContext
	 */
	ClientInvocationContext invoke(ClientInvocationContext context);

	/**
	 * 正常结束
	 * 
	 * @param context
	 *            上下文
	 */
	void after(ClientInvocationContext context);

	/**
	 * 异常结束
	 * 
	 * @param context
	 *            上下文
	 * @param throwable
	 *            异常对象
	 */
	void exception(ClientInvocationContext context, Throwable throwable);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy