문제

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