Interface TaskContext
- 
 public interface TaskContextCreated by colby.clegg on 5/6/2015.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description GatewayContextgetGatewayContext()voidreportStatusEvent(TaskStatusEvent event)This allows the task to report a "historical" status event that will be displayed on the task status page.voidresumeTask()This function is used to resume tasks that have yielded execution, from inside the task.voidupdateCompletionPercent(double pct)voidupdateStatusMessage(java.lang.String message)voidyieldExecution()Call this function to mark the task for continuation at a later point.
 
- 
- 
- 
Method Detail- 
updateStatusMessagevoid updateStatusMessage(java.lang.String message) 
 - 
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.
 - 
reportStatusEventvoid reportStatusEvent(TaskStatusEvent event) This allows the task to report a "historical" status event that will be displayed on the task status page.
 
- 
 
-