/*
  * Overrides the run method.
  */
 public void run() {
   workStarted(workItem, decoratedWork);
   try {
     decoratedWork.run();
     workCompleted(workItem, decoratedWork);
   } catch (Throwable th) {
     workCompleted(workItem, decoratedWork, new WorkSchedulerException(th.getMessage(), th));
   }
 }
Example #2
0
 public void execute(Work work) {
   System.out.printf("WorkRunner[%s] execute Work[%d]\n", beanId, work.getOrder());
   work.run();
 }