diff --git a/service.html b/service.html index 5ef6d655e..fd0604b73 100644 --- a/service.html +++ b/service.html @@ -540,7 +540,7 @@ //异步查询单个 @RestMapping(name = "asyncfind", auth = false, comment = "根据id查找单个Hello对象") public HelloEntity findHello(AsyncHandler handler, @RestParam(name = "#") int id) { //通过 /pipes/hello/asyncfind/1234 查询对象 - return source.find(handler, HelloEntity.class, id); + return source.findAsync(handler, HelloEntity.class, id); } } @@ -633,7 +633,7 @@
远程模式不仅对@RpcCall注解进行处理,而且对方法含有 AsyncHandler 的参数也进行异步特殊处理。异步调用对远程模式非常有意义,可以减少同步方式对当前线程的占用时间。也给Source组件的异步调用提供了基础。
@Override
- public <T> void update(final AsyncHandler<Void, T[]> handler, @RpcAttachment final T... values) {
+ public <T> void updateAsync(final AsyncHandler<Void, T[]> handler, @RpcAttachment final T... values) {
source.update(values);
if (handler != null) handler.completed(null, values);
}