Class 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 Detail

      • ForeverRunner

        public ForeverRunner​(Runnable runnable)
    • Method Detail

      • run

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