Relative Content

Tag Archive for javaspringspring-bootstreamthreadpoolexecutor

Can you use a custom ThreadPoolTaskExecutor on parallel streams?

I want to know if I can use my own custom thread pool that is not fork join on parallel streams. Doing research online, I found that you can override the default thread pool of the parallel streams with your own custom threadpool. I tried to do the same by using a ThreadPoolTaskExecutor as so: