首页 新闻 赞助 找找看

NettyRPC的一点问题

0
[待解决问题]

@Override
public Object get() throws InterruptedException, ExecutionException {
sync.acquire(-1);
if (this.response != null) {
return this.response.getResult();
} else {
return null;
}
}

 

这个sync.acquire(-1);作用是什么,可能我对AQS理解不够

Kora的主页 Kora | 菜鸟二级 | 园豆:202
提问于:2017-10-27 18:29
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册