Netty 4 using a different key other than Channel to maintain event order

StackOverflow https://stackoverflow.com/questions/23606286

  •  20-07-2023
  •  | 
  •  

문제

In Netty 3 there is an OrderedMemoryAwareThreadPoolExecutor and in documentation described how to change ordering key: http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.html

In Netty 4 this was class replaced with EventExecutorGroup approach. As I understand if I will use DefaultEventExecutorGroup it will maintain order by channel (btw, is it correct?). But if I have several sessions multiplexed on one channel and i want to use other key for parallel execution then channel is there a way to make it in Netty 4?

도움이 되었습니까?

해결책

Not with anything that is provided by Netty itself atm. You may be able to use a custom EventExecutorInvoker which will be part of Netty 4.1. Could you please open an issue with your use-case explained at our issue tracker so we can keep track ?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top