🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #475

java.util.Timer & java.util.TimerTask

#475
From: Petar Popara
Date: Tue, 19 Apr 2005 07:35
13 lines
1325 bytes
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. 
Technical Details
Message-ID: <4264b4ca@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,11f9ece12b185b02,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Petar Popara" <none>
Newsgroups: borland.public.jbuilder.java.language
Subject: java.util.Timer & java.util.TimerTask
Date: Tue, 19 Apr 2005 09:35:49 +0200
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 193.138.1.206
Message-ID: <4264b4ca@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113896138 193.138.1.206 (19 Apr 2005 00:35:38 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail