dev@grizzly.java.net

Re: threadpools

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Thu, 17 Dec 2009 10:56:32 +0100

Hi Gustav,

> We could provide a single point of entry for threadpools , so we can
> hide our mess.
> The mess could be brought down to 2 or so pool impls too.
>
> A static create method that returns whats optimal impl depending on
> the provided configuration.
> If statistical fluff is needed we return a slow version that gives
> that etc.
>
> Whats your opinion regarding this matter ?:
Just to make sure, you mean something like:
public static ExecutorService ThreadPool.create() {...}
public static ExecutorService ThreadPool.create(ThreadPoolConfig
config) {...}

?

WBR,
Alexey.

>
> --
> regards
> gustav trede
>
>