I have blocking queue with multiple producers and single consumer (which enough for post processing of items).
Producers starts by schedule which send tasks to executor pool and then tasks adds by workers to queue.
My question about how to start consumer thread?
For now I have @EventListener (SpringBoot) that send on start to singleThreadExecutorPool method which serve the queue in infinite while loop, maybe better solution exists for this case. Looks like pretty common pattern for consuming queue.