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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top