Better control of the finished task
-----------------------------------
Key: DROIDS-67
URL: https://issues.apache.org/jira/browse/DROIDS-67
Project: Droids
Issue Type: Improvement
Components: core
Reporter: Javier Puerto
The interface TaskMaster defines the method:
void awaitTermination(long timeout, TimeUnit unit) throws InterruptedException;
But the implementation of the MultiThreadedTaskMaster is based on
ExecutorService and this have the same method returning a boolean value.
This kind of behaviour is better because in the case of you want to made two
MultiThread Droid and one is the consumer from the other, you can't control if
the first finished the work (producer) to run the second (consumer).
Attached is a patch that solves the problem, is implemented also on
SequentialTaskMaster.
Salu2.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.