org.mmbase.core.util
Interface DaemonTask

All Known Implementing Classes:
DaemonThread

Deprecated. This class copies functionality present in e.g. java.util.concurrent.ScheduledThreadPoolExecutor (a thread pool which can be used is e.g. ThreadPools.scheduler).

public interface DaemonTask

Defines a task to run in a daemon thread. A task should define a executeTask() method and a getSleepPeriod() method to define it's behavior.

Since:
MMBase-1.8

Method Summary
 void executeTask()
          Deprecated. Defines a task that need be run by a daemon thread's run() method.
 int getSleepPeriod()
          Deprecated. Returns this task's sleep period.
 

Method Detail

getSleepPeriod

int getSleepPeriod()
Deprecated. 
Returns this task's sleep period.


executeTask

void executeTask()
Deprecated. 
Defines a task that need be run by a daemon thread's run() method.



MMBase 2.0-SNAPSHOT - null