Me and my team are developing a webapplication in Java EE and we were wondering about something.
One of our classes has a certain lifecycle, it will advance through stages after certain periods of time.
How can we achieve this, how can we do, let's say, 10 minutes after the creation of the object, advance to the next stage, then after 2 hours, advance to the third stage, then after 50 minutes, advance.... and so on.
Thanks
EDIT: There won't be just ONE instance of this class, but multiple, potentially hundreds, so using a scheduled event won't provide the functionality we're looking for.