🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1218

Re: Periodical execution of function

#1218
From: Joi Ellis [TeamB]
Date: Sun, 14 Apr 2002 13:35
17 lines
1658 bytes
Nazim Akperov <nazim_akperov@msn.com> wrote:
> Dear newsgroup users and TeamB members, please help me with advise
> How to create periodical function execution in my program?
> For example I need function to get local IP address every 5 minutes and send
> it to my email every 5 minutes?

My first thought is to use the Timer class to run a clock thread which will
periodically wake up and trigger the email.

Silly question time:  Why do you need to do this?  

-- 
Joi Ellis (TeamB)               http://www.teamb.com/
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html
Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID: <3cb985b0_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!teaser.fr!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3cb92adc_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,bad8dc1d5c3bc06f
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-04-14 06:39:11 PST
Sender: Joi Ellis <joi@artoo.gyles19.visi.com>
Message-ID: <3cb985b0_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Periodical execution of function
Newsgroups: borland.public.jbuilder.java.api
References: <3cb92adc_2@dnews>
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.2.19-6.2.7 (i686))
NNTP-Posting-Host: 209.98.6.107
Date: 14 Apr 2002 06:35:44 -0700
X-Trace: dnews 1018791344 209.98.6.107 (14 Apr 2002 06:35:44 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!teaser.fr!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail