Uses of Class
com.github.workerframework.api.TaskMessage
Packages that use TaskMessage
-
Uses of TaskMessage in com.github.workerframework.api
Methods in com.github.workerframework.api with parameters of type TaskMessageModifier and TypeMethodDescriptionvoid
WorkerCallback.complete
(TaskInformation taskInformation, String queue, TaskMessage responseMessage) Indicate a task was completed.void
TaskMessageForwardingEvaluator.determineForwardingAction
(TaskMessage tm, TaskInformation taskInformation, Map<String, Object> headers, WorkerCallback callback) Deprecated.Examines the task message and decides whether to forward it or take some other action, e.g.void
WorkerCallback.forward
(TaskInformation taskInformation, String queue, TaskMessage forwardedMessage, Map<String, Object> headers) Indicates the Worker wishes to forward this task to the specified queue without processing it.DivertedTaskHandler.handleDivertedTask
(TaskMessage tm, TaskInformation taskInformation, Map<String, Object> headers, Codec codec, JobStatus jobStatus, WorkerCallback callback) Examines the task message and decides what to do with it.void
WorkerCallback.pause
(TaskInformation taskInformation, String pausedQueue, TaskMessage taskMessage, Map<String, Object> headers) Indicates the Worker wishes to forward this task to the specified paused queue without processing it.void
WorkerCallback.reportUpdate
(TaskInformation taskInformation, TaskMessage reportUpdateMessage) Used to send a report update message.void
WorkerCallback.send
(TaskInformation taskInformation, TaskMessage responseMessage) Used to send responses prior to the final response (when complete should be used instead).void
WorkerTaskData.sendMessage
(TaskMessage tm) Used when a task message needs to be published on the messaging queue.