类 DelegatingWork

    • 构造器详细资料

      • DelegatingWork

        public DelegatingWork​(Runnable delegate)
        Create a new DelegatingWork.
        参数:
        delegate - the Runnable implementation to delegate to
    • 方法详细资料

      • run

        public void run()
        Delegates execution to the underlying Runnable.
        指定者:
        run 在接口中 Runnable
      • release

        public void release()
        This implementation is empty, since we expect the Runnable to terminate based on some specific shutdown signal.
        指定者:
        release 在接口中 Work