nl.justobjects.toolkit.sys
Class Alarm.AlarmThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--nl.justobjects.toolkit.sys.Alarm.AlarmThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Alarm

private static class Alarm.AlarmThread
extends java.lang.Thread

Alarm timer thread.

Purpose and Responsibilities

One (static) instance of the alarm thread loops infinitely executing expired alarms and sleeping until the next alarm expires and must be executed.

Concurrency

This class is thread-safe, because all read/write accesses on the scheduled alarms set are synchronized.

Special effort has been made to enable cancellations or rescheduling of alarm calls by clients within a alarm callback.

Version:
$Revision: 1.7 $ $Date: 2003/01/06 00:23:49 $
Author:
Just van den Broecke

Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ, userDaemon
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 



Copyright © 2000-2001 - Just Objects B.V.