移除RpcMultiRun功能

This commit is contained in:
Redkale
2020-05-15 22:02:54 +08:00
parent f1a97c0219
commit 292ff63699
5 changed files with 65 additions and 448 deletions

View File

@@ -43,13 +43,11 @@ public class SncpTestServiceImpl implements SncpTestIService {
}
@Override
@RpcMultiRun
public long queryLongResult(String a, int b, long value) {
return value + 1;
}
@Override
@RpcMultiRun
public double queryDoubleResult(String a, int b, double value) {
return value + 1;
}
@@ -103,7 +101,6 @@ public class SncpTestServiceImpl implements SncpTestIService {
if (handler != null) handler.completed("result: " + bean, bean);
}
@RpcMultiRun
@Override
public String updateBean(@RpcCall(CallAttribute.class) SncpTestBean bean) {
bean.setId(System.currentTimeMillis());

View File

@@ -17,12 +17,4 @@ public class _DynLocalSncpTestService extends SncpTestServiceImpl {
private SncpClient _redkale_client;
@SncpDyn(remote = false, index = 1)
public long _redkale_queryLongResult(boolean selfrunnable, boolean samerunnable, boolean diffrunnable, String a, int b, long value) {
long rs = super.queryLongResult(a, b, value);
if (_redkale_client == null) return rs;
if (samerunnable) _redkale_client.remoteSameGroup(1, true, false, false, a, b, value);
if (diffrunnable) _redkale_client.remoteDiffGroup(1, true, true, false, a, b, value);
return rs;
}
}