Exemplo n.º 1
0
 @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();
 }