Reputation: 449
Why not bind the ChannelHandler to specific EventLoop so that I don't need to care about thread safe problem thus improve performance?
Upvotes: 0
Views: 42
Reputation: 23567
Because it is re-used for different streams which may use different EventLoop
s. If your handler is not you can just use a ChannelInitializer
that will add your ChannelHandler
.
Upvotes: 1