Missing clarity in TimerTask doc
Martin Buchholz
martinrb at google.com
Mon Sep 15 20:39:07 UTC 2014
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 <Ulf.Zibis at cosoco.de> wrote:
> 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 schedule
> had happened; would it then happen twice or would the same run be
> re-scheduled?
>
> Thanks,
>
> -Ulf
>
>
More information about the core-libs-dev
mailing list