Class DelegatingWork

    • Constructor Detail

      • DelegatingWork

        public DelegatingWork​(Runnable delegate)
        Create a new DelegatingWork.
        Parameters:
        delegate - the Runnable implementation to delegate to
    • Method Detail

      • run

        public void run()
        Delegates execution to the underlying Runnable.
        Specified by:
        run in interface Runnable
      • release

        public void release()
        This implementation is empty, since we expect the Runnable to terminate based on some specific shutdown signal.
        Specified by:
        release in interface Work