void finishProcessing(final RequestWorkItem workItem) { synchronized (waitingPlans) { if (!workItem.active) { return; } workItem.active = false; currentlyActivePlans--; if (!waitingPlans.isEmpty()) { RequestWorkItem work = waitingPlans.remove(); startActivePlan(work, true); } } if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { LogManager.logDetail(LogConstants.CTX_DQP, workItem.requestID, "Finished Processing"); //$NON-NLS-1$ } }
void finishProcessing(final RequestWorkItem workItem) { synchronized (waitingPlans) { if (!workItem.active) { return; } workItem.active = false; currentlyActivePlans--; if (!waitingPlans.isEmpty()) { RequestWorkItem work = waitingPlans.remove(); startActivePlan(work, true); } } if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { LogManager.logDetail(LogConstants.CTX_DQP, workItem.requestID, "Finished Processing"); //$NON-NLS-1$ } }
void finishProcessing(final RequestWorkItem workItem) { synchronized (waitingPlans) { if (!workItem.active) { return; } workItem.active = false; currentlyActivePlans--; if (!waitingPlans.isEmpty()) { RequestWorkItem work = waitingPlans.remove(); startActivePlan(work, true); } } if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { LogManager.logDetail(LogConstants.CTX_DQP, workItem.requestID, "Finished Processing"); //$NON-NLS-1$ } }
synchronized (waitingPlans) { if (runInThread || currentlyActivePlans < maxActivePlans) { startActivePlan(workItem, !runInThread); } else { if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) {
synchronized (waitingPlans) { if (runInThread || currentlyActivePlans <= maxActivePlans) { startActivePlan(workItem, !runInThread); } else { if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) {
synchronized (waitingPlans) { if (runInThread || currentlyActivePlans < maxActivePlans) { startActivePlan(workItem, !runInThread); } else { if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) {