duccOut.trace(location, jobid, "return");
return;
}
duccOut.trace(location, jobid, "continue...");
for(int i=0; i<count; i++) {
CasTuple casTuple = casSource.pop();
driverStatusReport.setWorkItemsFetched(casSource.getSeqNo());
if(casTuple == null) {
if(casSource.isEmpty()) {
driverStatusReport.resetWorkItemsPending();
}
break;
}
duccOut.debug(location, jobid, "queue:"+casTuple.getSeqno());
ThreadLocation threadLocation = new ThreadLocation(""+casTuple.getSeqno());
duccOut.debug(location, jobid, "action:ready "+threadLocation.getInfo());
getCasDispatchMap().put(casTuple, threadLocation);
Future<?> pendingWork = executor.submit(workItemFactory.create(casTuple));
threadLocation.setPendingWork(pendingWork);
workItemActive();