Class WorkHolder

java.lang.Object
org.nuxeo.ecm.core.work.WorkHolder
All Implemented Interfaces:
Runnable

public class WorkHolder extends Object implements Runnable
A WorkHolder adapts a Work to Runnable for queuing and execution by a ThreadPoolExecutor.

Calls (indirectly) Work.work() and Work.cleanUp(boolean, java.lang.Exception).

Since:
5.8
See Also:
  • Constructor Details

    • WorkHolder

      public WorkHolder(Work work)
  • Method Details

    • getWork

      public static Work getWork(Runnable r)
    • run

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