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 TypeMethodDescriptionvoidWorkerCallback.complete(TaskInformation taskInformation, String queue, TaskMessage responseMessage) Indicate a task was completed.voidTaskMessageForwardingEvaluator.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.voidWorkerCallback.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.voidWorkerCallback.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.voidWorkerCallback.reportUpdate(TaskInformation taskInformation, TaskMessage reportUpdateMessage) Used to send a report update message.voidWorkerCallback.send(TaskInformation taskInformation, TaskMessage responseMessage) Used to send responses prior to the final response (when complete should be used instead).voidWorkerTaskData.sendMessage(TaskMessage tm) Used when a task message needs to be published on the messaging queue.