Defines a single thread with a queue enabling notification of timer expiration. The priniciple is to have a time ordered list of notification objects. The thread waits until the next closest expiration time in the queue. The thread is interrupted whenever a new entry is queued. Whenever awaken, either by interruption or expiration, the thread notifies all expired waiters, removing them from the queue. The timer queue entries consist of an absolute expiry time, and an action object typically the action will be to wake another thread, but it could do something more specialized. The specialized action should not be blocking or it may adversely affect the performance of the timer queue.
@author Phil Mesnier {@literal }
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.