Interface TaskContext
public interface TaskContext
Created by colby.clegg on 5/6/2015.
- 
Method SummaryModifier and TypeMethodDescriptionvoidreportStatusEvent(TaskStatusEvent event) This allows the task to report a "historical" status event that will be displayed on the task status page.voidThis function is used to resume tasks that have yielded execution, from inside the task.voidupdateCompletionPercent(double pct) voidupdateStatusMessage(String message) voidCall this function to mark the task for continuation at a later point.
- 
Method Details- 
updateStatusMessage
- 
updateCompletionPercentvoid updateCompletionPercent(double pct) 
- 
getGatewayContextGatewayContext getGatewayContext()
- 
resumeTaskvoid resumeTask()This function is used to resume tasks that have yielded execution, from inside the task. This call will return quickly- and no more work should be done after calling it. Instead, as soon as possible, run() will be called on the task, and it can resume from where it was.
- 
yieldExecutionvoid yieldExecution()Call this function to mark the task for continuation at a later point. The task will be resumed when the resumeTask() function is called.
- 
reportStatusEventThis allows the task to report a "historical" status event that will be displayed on the task status page.
 
-