title: How to configure EventExecutor in Netty 4 like ExecutionHandler in Netty 3
body: <p>Netty 3 makes use of <a href="https://netty.io/3.9/api/org/jboss/netty/handler/execution/ExecutionHandler" rel="nofollow noreferrer">ExecutionHandler</a> which gives the ability to configure the system by passing in an <a href="https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executor.html" rel="nofollow noreferrer">Executor</a>. For example an <a href="https://netty.io/3.9/api/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.html" rel="nofollow noreferrer">OrderedMemoryAwareThreadPoolExecutor</a> can be used which allows ability to configure things like <code>corePoolSize</code>, <code>maxChannelMemorySize</code>, <code>maxTotalMemorySize</code> etc.</p>
  <p>In Netty 4, ExecutionHandler has been removed In <a href="https://netty.io/wiki/new-and-noteworthy-in-4.0.html#no-more-executionhandler---its-in-the-core" rel="nofollow noreferrer">New and noteworthy in 4.0</a> it is mentioned to use <code>DefaultEventExecutor</code> but as far as I can see, this does not have the same level of configuration flexibility as the removed <code>ExecutionHandler</code>.</p>
  <p>The question is how do one configure EventExecutor in Netty 4 like ExecutionHandler in Netty 3?</p>