Home | History | Annotate | Download | only in util

Lines Matching defs:Timer

25  * <p>Each timer has one thread on which tasks are executed sequentially. When
40 * (one launched immediately after another) if delays prevent the timer
44 * <p>When a timer is no longer needed, users should call {@link #cancel}, which
45 * releases the timer's thread and other resources. Timers not explicitly
49 * scheduling. Multiple threads can share a single timer without
52 public class Timer {
167 * True if the method cancel() of the Timer was called or the !!!stop()
173 * True if the Timer has become garbage
184 * Starts a new timer.
196 * This method will be launched on separate thread for each Timer
303 * Cancels timer.
356 * Creates a new named {@code Timer} which may be specified to be run as a
359 * @param name the name of the {@code Timer}.
360 * @param isDaemon true if {@code Timer}'s thread should be a daemon thread.
363 public Timer(String name, boolean isDaemon) {
372 * Creates a new named {@code Timer} which does not run as a daemon thread.
374 * @param name the name of the Timer.
377 public Timer(String name) {
382 * Creates a new {@code Timer} which may be specified to be run as a daemon thread.
384 * @param isDaemon {@code true} if the {@code Timer}'s thread should be a daemon thread.
386 public Timer(boolean isDaemon) {
387 this("Timer-" + Timer.nextId(), isDaemon);
391 * Creates a new non-daemon {@code Timer}.
393 public Timer() {
398 * Cancels the {@code Timer} and all scheduled tasks. If there is a
400 * on this {@code Timer}. Subsequent calls do nothing.
431 * if the {@code Timer} has been canceled, or if the task has been
452 * if the {@code Timer} has been canceled, or if the task has been
474 * if the {@code Timer} has been canceled, or if the task has been
497 * if the {@code Timer} has been canceled, or if the task has been
521 * if the {@code Timer} has been canceled, or if the task has been
544 * if the {@code Timer} has been canceled, or if the task has been
561 throw new IllegalStateException("Timer was canceled");