|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
| UnitOfWork | Represents a single unit of work. |
| Class Summary | |
| UnitOfWorkRunner | A class that repeateadly executes a unit of work, always using the same
TupleSpace.
|
Various utilities facilitating work with TupleSpace.
Use the UnitOfWorkRunner
when you want to implement the following idiom:
while (true) {
Tuple tuple = tupleSpace.readAndRemove(template);
// work with tuple
tupleSpace.addToSpace(resultTuple);
}
The UnitOfWorkRunner is a
Template which uses
the Strategy pattern
to implement workers. The workers should implement
UnitOfWork.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||