Package de.hybris.platform.task.runner
Class LatchTaskRunner
- java.lang.Object
-
- de.hybris.platform.task.runner.LatchTaskRunner
-
- All Implemented Interfaces:
TaskRunner<TaskModel>
public class LatchTaskRunner extends java.lang.Object implements TaskRunner<TaskModel>
-
-
Constructor Summary
Constructors Constructor Description LatchTaskRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleError(TaskService service, TaskModel task, java.lang.Throwable fault)voidrun(TaskService service, TaskModel task)voidsetLatch(java.util.concurrent.CountDownLatch latch)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.task.TaskRunner
initLoggingCtx, isLoggingSupported, stopLoggingCtx
-
-
-
-
Method Detail
-
handleError
public void handleError(TaskService service, TaskModel task, java.lang.Throwable fault)
- Specified by:
handleErrorin interfaceTaskRunner<TaskModel>
-
run
public void run(TaskService service, TaskModel task) throws RetryLaterException
- Specified by:
runin interfaceTaskRunner<TaskModel>- Throws:
RetryLaterException
-
setLatch
public void setLatch(java.util.concurrent.CountDownLatch latch)
-
-