I've read a few posts on here on how to delay loops and such using
Timers but I am unsure if they fit with my particular needs. I am
writing a feature for a GWT app I inherited that controls application
server states. (e.g. Start/Stop/Restart etc). I thought it would be a
cool idea to allow the users to set delays between each command sent
to the app server.

Example:

SERVER1 - RESTART
DELAY 15 SECONDS
SERVER2 - RESTART
DELAY 15 SECONDS
...

The problem I am having is with the delaying. Using a Timer would not
work because the timers return instantly when you set them on a
schedule. So any servers set with an action below any timers would
start right away. And all delay timers would start almost at the same
time.

The functionality I want is to be able to go through that list and do
each action one by one. Send restart server 1 command, delay 15
seconds, send restart server 2 command, delay 15 seconds, etc...

I would appreciate any suggestions or insights on this problem, thank
you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to