Top "Executorservice" questions

ExecutorService is a Java object containing the managed pool of threads and capable of scheduling the submitted tasks for these threads.

How to properly shutdown executor services with Spring?

I have a command line application that uses a Spring-managed bean that's composed of a java ExecutorService created with: ExecutorService …

java multithreading spring junit executorservice
ScheduledExecutorService: when shutdown should be invoked?

I use ScheduledExecutorService in my application. I need to use it from time to time in certain Utility class to …

java threadpool executorservice
Whether to use invokeAll or submit - java Executor service

I have a scenario where I have to execute 5 thread asynchronously for the same callable. As far as I understand, …

java concurrency executorservice java.util.concurrent
producer/consumer work queues

I'm wrestling with the best way to implement my processing pipeline. My producers feed work to a BlockingQueue. On the …

java concurrency executorservice producer-consumer blockingqueue
Daemon threads scheduled on an ExecutorService; explain why this is bad form

I'm comfortable with the idea of orderly shutdown on threads scheduled with an ExectuorService; that is to say, calling shutdown …

java multithreading concurrency daemon executorservice
ExecutorService vs Casual Thread Spawner

I have a basic question about how ExecutorService works in Java. It is quite hard to see the difference between …

java multithreading executorservice
Spring Async issue when upgrading from 4.2.0.RC3 to 4.2.0.RELEASE

I've a web application using the spring(4.2.x) artifacts spring-webmvc, spring-messaging, spring-websocket I've the below @Enable* annotations in my spring …

java spring spring-mvc executorservice spring-websocket
ScheduledExecutorService with variable delay

Suppose I have a task that is pulling elements from a java.util.concurrent.BlockingQueue and processing them. public void …

java concurrency executorservice blockingqueue
Future task of ExecutorService not truly cancelling

I push my Futures from a ExecutorService into a hash map. Later, I may call cancel on Futures from within …

java concurrency executorservice future
Java set a callback from ExecutorService

I have a fixedThreadPool that I am using to run a bunch of worker threads to achieve parallel execution of …

java multithreading callback threadpool executorservice