minor EWYK changes
This commit is contained in:
parent
28fb3e45d0
commit
d5feadd241
|
@ -42,7 +42,7 @@ public abstract class ExecutionStrategy implements Runnable
|
||||||
* results until {@link #produce()} has been called.
|
* results until {@link #produce()} has been called.
|
||||||
* @return true if this Producer may produce more tasks from {@link #produce()}
|
* @return true if this Producer may produce more tasks from {@link #produce()}
|
||||||
*/
|
*/
|
||||||
boolean isMoreToProduce();
|
boolean isMore();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called to signal production is completed
|
* Called to signal production is completed
|
||||||
|
@ -85,7 +85,7 @@ public abstract class ExecutionStrategy implements Runnable
|
||||||
break loop;
|
break loop;
|
||||||
|
|
||||||
// If we are still producing,
|
// If we are still producing,
|
||||||
if (_producer.isMoreToProduce())
|
if (_producer.isMore())
|
||||||
// execute the task
|
// execute the task
|
||||||
_executor.execute(task);
|
_executor.execute(task);
|
||||||
else
|
else
|
||||||
|
@ -139,7 +139,7 @@ public abstract class ExecutionStrategy implements Runnable
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
task=_producer.produce();
|
task=_producer.produce();
|
||||||
complete=task==null || _producer.isMoreToProduce();
|
complete=task==null || _producer.isMore();
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue