All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bitmechanic.util.JavaAlarm

com.bitmechanic.util.JavaAlarm

public class JavaAlarm
Provides a way to run a Runnable object with a timer. If the run() method does not return before timeout elapses, a TimeoutException is thrown. otherwise the constructor returns normally.


Constructor Index

 o JavaAlarm(Runnable, long)

Method Index

 o run()

Constructors

 o JavaAlarm
 public JavaAlarm(Runnable r,
                  long timeout) throws TimeoutException

Methods

 o run
 public void run()

All Packages  Class Hierarchy  This Package  Previous  Next  Index