Purple Code

com.purpletech.util
Interface Task

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
ActiveTask, BasicThreadWatcher, ThreadPool

public interface Task
extends java.lang.Runnable

This runnable task can be watched; that is, it knows how to register its state with a ThreadWatcher. It will also stop if someone calls its stop() method (though probably not immediately).

Version:
$Id: Task.java,v 1.2 2001/10/30 12:20:53 alex Exp $
Author:
Alex
See Also:
ThreadWatcher, BasicThreadWatcher

Method Summary
 void setWatcher(ThreadWatcher watcher)
           
 void stop()
           
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setWatcher

public void setWatcher(ThreadWatcher watcher)

stop

public void stop()

Documentation generated March 5 2003