org.mortbay.util
Class LifeCycleThread
java.lang.Object
org.mortbay.util.LifeCycleThread
- LifeCycle, Runnable
public abstract class LifeCycleThread
extends java.lang.Object
Base Thread class implementing LifeCycle.
error
public boolean error(Error e)
Handle error from loop.
- True of the loop should continue;
exception
public boolean exception(Exception e)
Handle exception from loop.
- True of the loop should continue;
getThread
public Thread getThread()
isDaemon
public boolean isDaemon()
isStarted
public boolean isStarted()
- isStarted in interface LifeCycle
- True if the LifeCycle has been started.
loop
public abstract void loop()
throws InterruptedException,
InterruptedIOException,
Exception
run
public final void run()
setDaemon
public void setDaemon(boolean d)
start
public void start()
throws Exception
Start the LifeCycle.
- start in interface LifeCycle
stop
public void stop()
throws InterruptedException
- stop in interface LifeCycle
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.