| java.lang.Object org.sape.carbon.services.threadpool.TaskInfoImpl
TaskInfoImpl | public class TaskInfoImpl implements TaskInfo(Code) | | Besides supplying the functionality described by the TaskInfo interface,
this implementation also is responsible for making callbacks using the
TaskCallback interface if a callback has been specified.
Copyright 2003 Sapient
since: carbon 2.1 author: Douglas Voet, Nov 20, 2003 version: $Revision: 1.6 $($Author: dvoet $ / $Date: 2003/11/20 18:49:59 $) |
getTask | public Runnable getTask()(Code) | | called by the DefaultThreadPoolImpl to get the task to execute
|
setExecuting | public synchronized void setExecuting()(Code) | | This method is called when a task begins execution. The status is set to
TaskStatusEnum.EXECUTING.
|
setFailure | public void setFailure(Throwable cause)(Code) | | This method is called when a task fails. The status is set to
TaskStatusEnum.FAILED, all listeners are notified and the callback
is called.
Parameters: cause - |
setSuccess | public void setSuccess()(Code) | | This method is called when a task succeeds. The status is set to
TaskStatusEnum.SUCCESS, all listeners are notified and the callback
is called.
|
|
|