|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a single unit of work.
Examples of units of work are: download a resource from the network, write results to a file, calculate a running total, etc.
Method Summary | |
void |
execute(TupleSpace tupleSpace)
Execute one unit of work. |
boolean |
isDone()
Return true if you are done, false
otherwise. |
Method Detail |
public void execute(TupleSpace tupleSpace) throws Exception
This method's responsibility is to use the provided TupleSpace
to execute it's work. Once the unit of work is completed, it should
simply return.
tupleSpace
- The space with which the unit of work should work
with.
Exception
- Any exception, which needs to be caught by callers.public boolean isDone()
true
if you are done, false
otherwise.
true
if the unit of work should be called again,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |