I have a situation where I have to check for a value in a database say aValue. If aValue is availabe then do process aValueProcess(). If the value is not available, I only can wait 30 min, and needs to check the database for value for every 10 minutes (3 times). If it exceeds 30 min exit the program.
Can anybody give me the logic for the best way to do it. Any help is appreciated.