| 程序包 | 说明 |
|---|---|
| org.redkale.net.sncp |
SNCP协议包,提供SNCP协议服务器
|
| 限定符和类型 | 方法和说明 |
|---|---|
static SncpDynServlet.SncpServletAction |
SncpDynServlet.SncpServletAction.create(Service service,
DLong actionid,
java.lang.reflect.Method method)
public class TestService implements Service {
public boolean change(TestBean bean, String name, int id) {
}
}
public class DynActionTestService_change extends SncpServletAction {
public TestService service;
@Override
public void action(final BsonReader in, final BsonWriter out) throws Throwable {
TestBean arg1 = convert.convertFrom(paramTypes[1], in);
String arg2 = convert.convertFrom(paramTypes[2], in);
int arg3 = convert.convertFrom(paramTypes[3], in);
Object rs = service.change(arg1, arg2, arg3);
callParameter(out, arg1, arg2, arg3);
convert.convertTo(out, paramTypes[0], rs);
}
}
|