|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkItemManager
A work item manager is responsible for finding the right work item handler when a work item should be executed and should be notified when this work item has been completed (or aborted).
Method Summary | |
---|---|
void |
abortWorkItem(long id)
Notifies the work item manager that the work item with the given id could not be executed and should be aborted. |
void |
completeWorkItem(long id,
Map<String,Object> results)
Notifies the work item manager that the work item with the given id has been completed. |
void |
registerWorkItemHandler(String workItemName,
WorkItemHandler handler)
Register the given handler for all work items of the given type of work |
Method Detail |
---|
void completeWorkItem(long id, Map<String,Object> results)
id
- the id of the work item that has been completedresults
- the results related to this work item, or null
if there are no resultsvoid abortWorkItem(long id)
id
- the id of the work item that should be abortedvoid registerWorkItemHandler(String workItemName, WorkItemHandler handler)
workItemName
- the type of work this work item handler can executehandler
- the handler for executing work items
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |