| java.lang.Object net.sourceforge.groboutils.util.thread.v1.LoopThread
All known Subclasses: net.sourceforge.groboutils.util.thread.v1.QueueThread,
LoopThread | public class LoopThread (Code) | | For threads which loop endlessly (which is a common thing), this
class implements the pause, start, and stop routines since JDK 1.2
deprecated theirs.
This class delegates the Thread object, so that this class doesn't
have to emulate all those thread methods. In this way, a LoopThread
should act just like a Thread.
author: Matt Albrecht groboclown@users.sourceforge.net since: June 4, 2000 version: $Date: 2003/02/10 22:52:48 $ |
MILLI_IN_SECOND | final public static long MILLI_IN_SECOND(Code) | | |
LoopThread | public LoopThread()(Code) | | Used in case the implementing class needs to postpone initialization
until after the LoopThread construction.
|
getSleepTime | public int getSleepTime()(Code) | | Retrieves the sleep time in seconds.
|
getSleepTimeMillis | public long getSleepTimeMillis()(Code) | | Retrieves the sleep time in milliseconds.
|
isPaused | public boolean isPaused()(Code) | | |
isRunning | public boolean isRunning()(Code) | | |
setRunnable | public void setRunnable(Runnable run)(Code) | | Sets the runnable instance after construction. It cannot be
changed once the thread is running.
|
setSleepTime | public void setSleepTime(int seconds)(Code) | | Sets the sleep time in seconds.
|
setSleepTimeMillis | public void setSleepTimeMillis(long millis)(Code) | | Sets the sleep time in milliseconds.
|
|
|