When the java program execution starts from controller to all the way till DAO layer, In between i want to halt the execution until some heavy lifting operation happens at some other model(Post request to do some operation). and then resume the task in my current model.
Can we halt the current process execution for sometime and then resume the process in java?
sleep. Read about thewait-notifyapproach.Future(especially if that heavy op is in background) count down latches etc.