How to fail a channel.write() future in a channel handler?

Alex Wang alex.wang06 at gmail.com
Thu Jul 8 16:19:45 EDT 2010


Hi all,

I have a client written in Netty.  When I write to the channel, I want to be
able to cause the future.isSuccessful() to return false when certain
conditions are met.  How do I do that?  Throwing an exception in the
writeRequested() method does not seem to do that.

Thanks for your help.

Alex

-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/How-to-fail-a-channel-write-future-in-a-channel-handler-tp5271815p5271815.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list