@Override public void afterRun() throws Exception { LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name); if (Boolean.TRUE.equals(response)) { stats.incrementOffers(); publishEvent(ItemEventType.ADDED, data); } else { stats.incrementRejectedOffers(); } }
@Override public void afterRun() throws Exception { LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name); stats.incrementOtherOperations(); }