ch.bind.philib.lang
Class ThreadUtil.ForeverRunner

java.lang.Object
  extended by ch.bind.philib.lang.ThreadUtil.ForeverRunner
All Implemented Interfaces:
Runnable
Enclosing class:
ThreadUtil

public static final class ThreadUtil.ForeverRunner
extends Object
implements Runnable

Wrapper for a runnable. The wrapper will delegate calls to Runnable.run() to the wrapped object. If the wrapped run() method terminates unexpectedly the run method will be called again.


Constructor Summary
ThreadUtil.ForeverRunner(Runnable runnable)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadUtil.ForeverRunner

public ThreadUtil.ForeverRunner(Runnable runnable)
Method Detail

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2013. All Rights Reserved.