org.mmbase.applications.crontab
Class Interruptable
java.lang.Object
org.mmbase.applications.crontab.Interruptable
- All Implemented Interfaces:
- Runnable
- public class Interruptable
- extends Object
- implements Runnable
A Runnable wich also has an 'interrupt' method. This only works well
if the job does sleeps (InterruptedException) or check Thread.isInterrupted().
- Since:
- MMBase-1.8
- Author:
- Michiel Meeuwissen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Interruptable
public Interruptable(Runnable run,
Collection col)
run
public void run()
- Specified by:
run in interface Runnable
interrupt
public boolean interrupt()
isAlive
public boolean isAlive()
getStartTime
public Date getStartTime()
MMBase build 1.8.1.20060716