8058550: Clarify that TimerTasks are not reusable
Reviewed-by: alanb, chegar
This commit is contained in:
parent
f1cc7f5119
commit
865fe20405
@ -26,10 +26,14 @@
|
||||
package java.util;
|
||||
|
||||
/**
|
||||
* A task that can be scheduled for one-time or repeated execution by a Timer.
|
||||
* A task that can be scheduled for one-time or repeated execution by a
|
||||
* {@link Timer}.
|
||||
*
|
||||
* <p>A timer task is <em>not</em> reusable. Once a task has been scheduled
|
||||
* for execution on a {@code Timer} or cancelled, subsequent attempts to
|
||||
* schedule it for execution will throw {@code IllegalStateException}.
|
||||
*
|
||||
* @author Josh Bloch
|
||||
* @see Timer
|
||||
* @since 1.3
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user