Lines Matching defs:Timer
35 * <p>Corresponding to each {@code Timer} object is a single background
37 * Timer tasks should complete quickly. If a timer task takes excessive time
43 * <p>After the last live reference to a {@code Timer} object goes away
59 * {@code Timer} object without the need for external synchronization.
69 * versatile replacement for the {@code Timer}/{@code TimerTask}
74 * {@code Timer}.
89 public class Timer {
105 * gracefully when there are no live references to the Timer object and no
107 * Timer as such a finalizer would be susceptible to a subclass's
132 public Timer() {
133 this("Timer-" + serialNumber());
146 public Timer(boolean isDaemon) {
147 this("Timer-" + serialNumber(), isDaemon);
159 public Timer(String name) {
174 public Timer(String name, boolean isDaemon) {
398 throw new IllegalStateException("Timer already cancelled.");
485 * are no more live references to our Timer object. Once this flag
493 * Our Timer's queue. We store this reference in preference to
494 * a reference to the Timer so the reference graph remains acyclic.
495 * Otherwise, the Timer would never be garbage-collected and this
508 // Someone killed this Thread, behave as if Timer cancelled
565 * ordered on nextExecutionTime. Each Timer object has one of these, which it