I'm trying to do something with a java servlet
involving a time dealy ...
Basically what happens is i get an alert over the
network every time theres a change on a server
and my code automatically mails off this alert
to the relavant people, - problem the alerts are
far too frequent - 2 a minute type thing
Here my basic algorithm
When an alert is received
Start a timer,
Any alert you get inbetween,
Check if the exact same alert has been
break the timer loop
and send the mail
add it to an array of alerts
and wait until timer is finished
end timer loop
So in effect instead of getting a mail
every 2 minutes about the same problem
the program would would it for a half hour
before mailing it out again ...
Would it be useful to run this as a separate
Is there an api in java for these type of problems ?
Any help with this is greatly appreciated ..