Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top