I have a List of Items. I want to run some operation for each item in the list one by one. The operation might take 5 minutes to complete. The ask is that for a particular item in the list the operation should start and complete then only the operation should start for the next item and so on. The operation should execute for only the number of items in the list.
This list is being used by multiple threads.
I am thinking of using TimerTask for it or Schedular.
Can please help on this?