On Thu, Mar 11, 2021 at 5:20 PM Narsi Reddy Nallamilli
wrote:
>
> Hi,
>
> I want to be able to associate each runnable job id to thread so that I can
> associate that threads activity with that thread.
>
> Is the #counter in camel default thread pattern incremented every time a
> thread is used fr
Hi,
I want to be able to associate each runnable job id to thread so that I can
associate that threads activity with that thread.
Is the #counter in camel default thread pattern incremented every time a
thread is used from the pool ?
On Wed, Mar 10, 2021 at 11:37 PM Claus Ibsen wrote:
> Hi
>
>
Hi
You can plugin your own thread pool factory where you can control how
thread pools (ExecutorService) are created and how these thread pools
create threads,
where you can do the before / after thread thingy.
However what is your use-case for doing this?
On Wed, Mar 10, 2021 at 2:06 PM Narsi
Hi,
I have a executorservice build from threadpoolbuilder.
public ExecutorService jobThreadPool() throws Exception {
return new
ThreadPoolBuilder(getContext()).poolSize(50).maxPoolSize(500).keepAliveTime(180).build("jobThread");
}
I would like to set thread before executing the task, just l