Re: Missing clarity in TimerTask doc

2014-09-16 Thread Ulf Zibis
Am 16.09.2014 um 00:47 schrieb Martin Buchholz: Maybe it could be extentend to: IllegalStateException - if task was already scheduled, cancelled or already done, timer was cancelled, or timer thread terminated. ... as I assume a TimerTask instance is never reusable. It's alrea

Re: Missing clarity in TimerTask doc

2014-09-15 Thread Martin Buchholz
On Mon, Sep 15, 2014 at 3:11 PM, Ulf Zibis wrote: > > Am 15.09.2014 um 22:39 schrieb Martin Buchholz: > >> http://docs.oracle.com/javase/8/docs/api/java/util/Timer. >> html#schedule-java.util.TimerTask-long- >> >> IllegalStateException - if task was already scheduled or cancelled, timer >> was ca

Re: Missing clarity in TimerTask doc

2014-09-15 Thread Ulf Zibis
Am 15.09.2014 um 22:39 schrieb Martin Buchholz: http://docs.oracle.com/javase/8/docs/api/java/util/Timer.html#schedule-java.util.TimerTask-long- IllegalStateException - if task was already scheduled or cancelled, timer was cancelled, or timer thread terminated. Oops, overseen, thanks! Maybe

Re: Missing clarity in TimerTask doc

2014-09-15 Thread Martin Buchholz
http://docs.oracle.com/javase/8/docs/api/java/util/Timer.html#schedule-java.util.TimerTask-long- IllegalStateException - if task was already scheduled or cancelled, timer was cancelled, or timer thread terminated. On Mon, Sep 15, 2014 at 10:47 AM, Ulf Zibis wrote: > Hi all, > > I'm missing cla

Missing clarity in TimerTask doc

2014-09-15 Thread Ulf Zibis
Hi all, I'm missing clarity, if a j.u.TimerTask object can be scheduled more than once. Especially, can it be scheduled again with Timer.schedule(...) after it has been cancelled, or has a new TimerTask object to be instantiated? What happens if a TimerTask is scheduled again before the first sc