ChannelFuture 完整究竟意味着什么?
请原谅这个无聊的问题,但是当我执行操作时,
ChannelFuture future = channel.write(message);
future.addListener(new ChannelFutureListener() {
public void operationComplete(ChannelFuture future) {
}
}
我怎么知道 operationComplete() 方法中消息的状态呢?例如,这是否意味着消息已到达目的地?或者这是否意味着消息已经通过管道,现在正在到达目的地的以太坊中的某个地方,或者是否意味着其他含义?
问候
Please excuse this numpty question, but when I do
ChannelFuture future = channel.write(message);
future.addListener(new ChannelFutureListener() {
public void operationComplete(ChannelFuture future) {
}
}
what do I know about the state of the message in the operationComplete() method? For example does it mean that the message has arrived at its destination? Or does it mean that the message has passed through the pipeline and is now somewhere in the ether on its way to its destination or does it mean something else?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
消息已写入远程对等点或失败。因此,如果您在这里获得成功,则可以确定消息已传输。
The message was written to the remote peer or it failed. So if you get a success here you can be sure that the message was transmitted.