[undertow-dev] IO and Worker Thread based on custom preferences

Bill O'Neil bill at dartalley.com
Thu Dec 22 06:43:42 EST 2016


This might be what you are looking for.

https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/HttpServerExchange.java#L821

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.

On Thu, Dec 22, 2016 at 6:16 AM, tone randomnaja <randomnaja at gmail.com>
wrote:

> Hi there !
>
> Undertow has `IO Thread` and `Worker Thread` configuration (<subsystem
> xmlns="urn:jboss:domain:io:1.1"><worker name="default".....) which could
> be bounded per Listener (<http-listener....).
>
> In my case I have 1 Listenner (AJP) and 1 Application (EAR),
> I'd like to be able to priority and manage Worker Thread base on some
> preferences, such as URL path.
>
> Above for a reason of controlling the load of specific URL (under the same
> Web Context).
>
> Any suggestions or ideas ?
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20161222/8e9062db/attachment.html 


More information about the undertow-dev mailing list