| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Hi, i do this starting a new Thread in the Application class. public Application() { super(); ... FOTimedMailer.startMailTimer(FOTimedMailer.NEXT); } public class FOTimedMailer extends TimerTask { ... public static void startMailTimer(int modus) { long nextStartAt = 0; FOTimedMailer mailer = new FOTimedMailer(); Timer aTimer = new Timer(); aTimer.schedule(mailer, nextStartAt); } @Override public void run() { // do my stuff ... if (hasMoreMail) { // Start in short period FOTimedMailer.startMailTimer(FOTimedMailer.NEXT); } else { // Sleep a while FOTimedMailer.startMailTimer(FOTimedMailer.SLEEP); } } } Stefan Ricardo J. Parada schrieb: Moving this thread to webobjects-dev as I think it has broader scope than just Wonder. |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden This email sent to email@hidden
| References: | |
| >Re: Non-web apps (From: "Ricardo J. Parada" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.