Hi,
I have a timer service configured to run every 5 minutes.
Code snippet:
@Timeout
public void onTimeout(final Timer timer){
*doComplexLogic(**);// *Read something and then update database
}
Sometimes the method *doComplexLogic() *can take more than 5 minutes to
complete.
The issue is:
For example if Timer *thread-1* which started at 1.00 AM takes more than 5
minutes then I am afraid that the next timer *thread-2* which will start at
1.05 AM may not work as expected due to the conflict of with the timer
*thread-1* process.
How can I solve this issue.
Hope you understand my issue. Feel free to ask if you need more elaboration.
--
Thanks and Regards
N Radhakrishna Kalyan
P: +46 733 312 584
http://about.me/nrkkalyan
<http://about.me/nrkkalyan>