private void notifyProcessorPool(String ppoolId) { PersistentProcessorPool pp = processorPoolManager.getProcessorPool(ppoolId); if (pp == null) { pp = processorPoolManager.getProcessorPool(PersistentProcessorPool.DEFAULT_POOL_ID); } if (pp != null) { pp.doNotify(); } }
@Override public void notify(Response<?> response, Acknowledge ack) { if (logger.isTraceEnabled()) logger.trace("notify(" + response + ")"); try { if (response.getResponseId() == null) { response.setResponseId(createUUID()); } startupBlocker.pass(); dbStorage.notify(response, ack); if (notifyProcessorPoolsOnResponse) { for (PersistentProcessorPool ppp : processorPoolManager.processorPools()) { ppp.doNotify(); } } } catch (Exception e) { throw new CopperRuntimeException("notify failed", e); } }