2016-04-21 31 views
0

我想知道爲什麼EventExecutorChooserMultithreadEventExecutorGroup中的私有成員,並且無法替換? Netty似乎走向了這個方向......將默認的RR線程選擇器重構爲帶有2個策略的接口。爲什麼我無法替換MultithreadEventExecutorGroup中的EventExecutorChooser netty 4

我需要控制處理的channel線程,執行負載EventLoops

之間平衡自己喜歡getChooser()的公共方法將是巨大的,那麼我可以簡單地重寫,並給我自己的選擇器... 我現在可以看到的唯一選擇是覆蓋\實施MultithreadEventExecutorGroup並更換EventExecutorChooser

感謝

+0

請檢查https://github.com/netty/netty/pull/5279,如果你有興趣做這個。 –

回答

相關問題