org.mortbay.util

Class LifeCycleThread

public abstract class LifeCycleThread extends Object implements LifeCycle, Runnable

Base Thread class implementing LifeCycle.

Version: $Revision: 1.9 $

Author: Greg Wilkins (gregw)

Method Summary
booleanerror(Error e)
Handle error from loop.
booleanexception(Exception e)
Handle exception from loop.
ThreadgetThread()
booleanisDaemon()
booleanisStarted()
abstract voidloop()
voidrun()
voidsetDaemon(boolean d)
voidstart()
voidstop()

Method Detail

error

public boolean error(Error e)
Handle error from loop.

Parameters: e The exception

Returns: True of the loop should continue;

exception

public boolean exception(Exception e)
Handle exception from loop.

Parameters: e The exception

Returns: True of the loop should continue;

getThread

public Thread getThread()

isDaemon

public boolean isDaemon()

isStarted

public boolean isStarted()

loop

public abstract void loop()

Throws: InterruptedException InterruptedIOException

run

public final void run()

setDaemon

public void setDaemon(boolean d)

start

public void start()

stop

public void stop()
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.