Uses of Class
com.github.workerframework.api.TaskRejectedException
Packages that use TaskRejectedException
-
Uses of TaskRejectedException in com.github.workerframework.api
Methods in com.github.workerframework.api with parameters of type TaskRejectedExceptionModifier and TypeMethodDescriptionvoid
WorkerTask.setResponse
(TaskRejectedException taskRejectedException) Used by the Worker to reject the taskMethods in com.github.workerframework.api that throw TaskRejectedExceptionModifier and TypeMethodDescriptionWorker.doWork()
Start the work on a task.default Worker
WorkerFactory.getWorker
(WorkerTaskData workerTask) default Worker
WorkerFactory.getWorker
(String classifier, int version, TaskStatus status, byte[] data, byte[] context, TrackingInfo tracking) Instantiate a new worker for given task datavoid
TaskCallback.registerNewTask
(TaskInformation taskInformation, byte[] taskData, Map<String, Object> headers) Announce to the worker core that a new task has been picked off the queue for processing. -
Uses of TaskRejectedException in com.github.workerframework.caf
Methods in com.github.workerframework.caf that throw TaskRejectedExceptionModifier and TypeMethodDescriptionprotected abstract Worker
AbstractWorkerFactory.createWorker
(T task, WorkerTaskData workerTaskData) Create a Worker instance.final Worker
AbstractWorkerFactory.getWorker
(WorkerTaskData workerTaskData) Verify that the incoming task has the right type and is a version that can be handled.protected final T
AbstractWorkerFactory.verifyWorkerTask
(WorkerTask workerTask) Verify that the specified worker task has the right type and is a version that can be handled.