基于netty写的一个异步Rpc调用小框架,欢迎拍砖,新手。
客户端与服务端通讯的类
package cc.ymsoft.Framework;
import java.io.Serializable;
@SuppressWarnings("serial")
public class MethodAndArgs implements Serializable{
private String methodName;//调用的办法名称
private Class<?>[] types;//参数类型
private Object[] objects;//参数列表
public String getMethodName() {
return methodName;
}
public void setMethodName(String methodName) {
this.methodName = methodName;
}
public Class<?>[] getTypes() {
return types;
}
public void setTypes(Class<?>[] types) {
this.types = types;
}
public Object[] getObjects() {
return objects;
}
public void setObjects(Object[] objects) {
this.objects = objects;
}
public MethodAndArgs() {
super();
// TODO Auto-generated constructor stub
}
public MethodAndArgs(String methodName, Class<?>[] types, Object[] objects) {
this.methodName = methodName;
this.types = types;
this.objects = objects;
}
}pack