public class WorkHolder extends Object implements Runnable
WorkHolder
adapts a Work
to Runnable
for queuing
and execution by a ThreadPoolExecutor
.
It also deals with transaction management, and prevents running work instances that are suspending.
Calls Work.work()
and Work.cleanUp(boolean, java.lang.Exception)
.
Work
,
Work.work()
,
Work.cleanUp(boolean, java.lang.Exception)
,
AbstractWork
Constructor and Description |
---|
WorkHolder(Work work) |
Copyright © 2013 Nuxeo SA. All Rights Reserved.