@Override public DispatchJobQueueEvent pushOwningProcess(String localProcessName) throws ProcessIdentifierException { return new DispatchJobQueueEvent(pushOwner(localProcessName), context, queue, activities); }
Integer queueSize() { return queueEvent.getQueue().size(); }
@Override public DispatchJobQueueEvent popOwningProcess() throws ProcessIdentifierException { return new DispatchJobQueueEvent(popOwner(), context, queue, activities); }
new DispatchJobQueueEvent(owningProcess, queues.get(owningProcess).peek() .getContext(), queues
while (queueEvent.getQueue().peek() != null && activeJobs < maximumJobs) { final IterationInternalEvent e = queueEvent.getQueue() .remove(); .getIndex(), e.getContext(), ((Job) e).getData(), queueEvent .getActivities());
@Override public void receiveJobQueue(DispatchJobQueueEvent queueEvent) { StateModel model = new StateModel(queueEvent, config.has("maxJobs") ? config.get("maxJobs").intValue() : 1); synchronized (stateMap) { stateMap.put(queueEvent.getOwningProcess(), model); } model.fillFromQueue(); }
new DispatchJobQueueEvent(owningProcess, event .getContext(), queue, getActivities())); } else {