I created two swing worker thread class in my swing application. They are load thread, save thread
- Load thread is used to load the data from rest service
- Save thread is used to push the data to rest service.
My question is that,
How to execute my threads one by one when i create more instance for load thread?
Save thread should be run after completing process of existing load thread
Does any one guide me to get solution for this scenario?
Note: I am using Swing Worker class to call rest services.