powered by Jive Software

How to choose threads number for ExecutorService in custom plugin?

Hi everyone!

I`m developing plugin, it intercept incoming custom IQ messages and do some kind of heavy actions that I want to separate between few threads. But I struggled with question how to choose correct threads number for ExecutorService in my plugin. Could anyone guide my or suggest something is it here some kind of pitfalls?