0

I am using Spring 5 and Java 8 and after suggestions on how to implement an Executor service in Spring that I can submit tasks to from a REST controller and have them queued and executed in "priority" order, not the submit order? That is, the tasks implement Runnable and Comparable and get queued and executed according to the natural ordering of the tasks. I'm sure there must be a simple solution and pattern in Spring for this but I'm struggling to find one.

Matt
  • 75
  • 7
  • 2
    suggestions here: https://stackoverflow.com/questions/3198660/java-executors-how-can-i-set-task-priority – Sean F Dec 15 '17 at 03:09
  • I have been searching for a day and bit but not seen that thread. Thanks Sean, it looks like good info. – Matt Dec 15 '17 at 04:03

0 Answers0