<div dir="ltr">This might be what you are looking for.<div><br></div><div><a href="https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/HttpServerExchange.java#L821">https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/HttpServerExchange.java#L821</a><br></div><div><br></div><div>You can change the dispatch executor to your own custom executor before you call dispatch. This will allow you to have different worker pools and configure them per HttpHandler.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 22, 2016 at 6:16 AM, tone randomnaja <span dir="ltr">&lt;<a href="mailto:randomnaja@gmail.com" target="_blank">randomnaja@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">Hi there !</span><br><div><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">Undertow has `</span><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">IO Thread` and `Worker Thread` configuration (</span><font color="#000000" face="consolas, lucida console, monospace">&lt;subsystem xmlns=&quot;urn:jboss:domain:io:1.<wbr>1&quot;&gt;&lt;worker name=&quot;default&quot;.....</font><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">) which could be bounded per Listener (</span><font color="#000000" face="consolas, lucida console, monospace">&lt;http-listener....</font><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">).</span></div><div><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">In my case I have 1 Listenner (AJP) and 1 Application (EAR),</span><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">I&#39;d like to be able to priority and manage Worker Thread base on some preferences, </span><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px">such as URL path.</span><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:consolas,&#39;lucida console&#39;,monospace;font-size:13px"><br></span></div><div><font color="#000000" face="consolas, lucida console, monospace">Above for a reason of controlling the load of specific URL (under the same Web Context).</font></div><div><font color="#000000" face="consolas, lucida console, monospace"><br></font></div><div><font color="#000000" face="consolas, lucida console, monospace">Any suggestions or ideas ?</font></div></div>
<br>______________________________<wbr>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>