com.epicentric.task
Interface ClusteredTask
- All Superinterfaces:
- Serializable
- public interface ClusteredTask
- extends Serializable
Interface to implement that is run by the TaskManager.
Notes to developers using this interface:
- If the VM fails during execution of a task, it will be re-run by
another node in the cluster. The task should be designed to take
this into account.
- Remember to specify a serialVersionUID for serial compatibility.
- As this may be run some time after addition, account for
environmental change such as the object to be referred to has been
removed or changed, invalidating the task. This may mean that the
task becomes a null operation.
- Since:
- 4.5
- See Also:
TaskManager
|
Method Summary |
void |
run()
Method to implement that is run to execute the task. |
run
public void run()
throws Throwable
- Method to implement that is run to execute the task.
Copyright and Trademark Notices