public class Dispatcher extends java.lang.Object implements TaskRunner<TaskModel>
| Constructor and Description |
|---|
Dispatcher(TransitionsHandler transitionsHandler,
ExecutionHandler executionHandler,
DistributedProcessLoggingCtxFactory distributedProcessLoggingCtxFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(TaskService taskService,
TaskModel task,
java.lang.Throwable error) |
TaskLoggingCtx |
initLoggingCtx(TaskModel task) |
boolean |
isLoggingSupported() |
void |
run(TaskService taskService,
TaskModel task) |
void |
stopLoggingCtx(TaskLoggingCtx taskCtx) |
public Dispatcher(TransitionsHandler transitionsHandler, ExecutionHandler executionHandler, DistributedProcessLoggingCtxFactory distributedProcessLoggingCtxFactory)
public void run(TaskService taskService, TaskModel task) throws RetryLaterException
run in interface TaskRunner<TaskModel>RetryLaterExceptionpublic void handleError(TaskService taskService, TaskModel task, java.lang.Throwable error)
handleError in interface TaskRunner<TaskModel>public boolean isLoggingSupported()
isLoggingSupported in interface TaskRunner<TaskModel>public TaskLoggingCtx initLoggingCtx(TaskModel task)
initLoggingCtx in interface TaskRunner<TaskModel>public void stopLoggingCtx(TaskLoggingCtx taskCtx)
stopLoggingCtx in interface TaskRunner<TaskModel>Copyright © 2018 SAP SE. All Rights Reserved.