Article View: borland.public.jbuilder.java.language
Article #484Re: java.util.Timer & java.util.TimerTask
From: Lori M Olson [TeamB]
Date: Tue, 19 Apr 2005 15:12
Date: Tue, 19 Apr 2005 15:12
37 lines
2138 bytes
2138 bytes
Petar Popara wrote:
> This docs says that there is stop() method somewhere:
>
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Timer.html
>
> ", for example, because its stop method is invoked,"
>
> but I can't find it. :(
>
> However, I need a way to check when Timer have finished execution. Something
> like Timer.isActive(). For example, when I call Timer.cancel() method, then
> if task was running it executes to the end (it doesn't abort) and I don't
> know when execution finished.
>
>
http://java.sun.com/docs/books/tutorial/essential/threads/timer.html
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<4265200b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4264b4ca@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,11f9ece12b185b02 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 19 Apr 2005 09:12:41 -0600 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax;nscd1) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: java.util.Timer & java.util.TimerTask References: <4264b4ca@newsgroups.borland.com> In-Reply-To: <4264b4ca@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <4265200b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113923595 142.179.181.200 (19 Apr 2005 08:13:15 -0800) Lines: 37 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail