I have a queue of activities that I want to process. First, I want to process them every 10 minutes, and if the task has been in the queue for more than an hour then I should process them every hour then on. The queue data has the start time saved. I am having difficulty coming up with a logic to handle this. Any help would be appreciated.
public class QueueData()
private Date m_startTime;
// process the queue data every 10 minutes.
// if the queue member is in there for more than an hour
// then don't process them every 10 mins but process them every hour.