org.mmbase.applications.crontab
Class Interruptable

java.lang.Object
  extended byorg.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

Constructor Summary
Interruptable(Runnable run, Collection col)
           
 
Method Summary
 Date getStartTime()
           
 boolean interrupt()
           
 boolean isAlive()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interruptable

public Interruptable(Runnable run,
                     Collection col)
Method Detail

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