public void startRpc(EventLoop eventLoop, Message.Builder builder, RpcCallback<Message> callback) {
if (this.callback != null) {
throw new IllegalStateException(
"ProtoRpcController already in use by another RPC call; " +
"wait for callback before reusing.");
}
if (callback == null) {
throw new NullPointerException("callback cannot be null");
}
assert this.eventLoop == null;
assert eventLoop != null;
assert this.builder == null;
assert builder != null;
this.eventLoop = eventLoop;
this.builder = builder;
this.callback = callback;
status = Protocol.Status.INVALID;
}
ProtoRpcController.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:sstore-soft
作者:
评论列表
文章目录