Pergunta

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

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top