Class CommonjDeamonWorkRunnableAdapter

  • All Implemented Interfaces:
    commonj.work.Work, Runnable

    public class CommonjDeamonWorkRunnableAdapter
    extends Object
    implements commonj.work.Work

    Long running Runnable adapter

    Author:
    Daniel Meyer
    • Field Detail

      • runnable

        protected final Runnable runnable
    • Constructor Detail

      • CommonjDeamonWorkRunnableAdapter

        public CommonjDeamonWorkRunnableAdapter​(Runnable runnable)
    • Method Detail

      • run

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

        public boolean isDaemon()
        Specified by:
        isDaemon in interface commonj.work.Work
      • release

        public void release()
        Specified by:
        release in interface commonj.work.Work