Exemple #1
0
 @Override
 protected void doStop() throws Exception {
   super.doStop();
   if (START_COUNTER.decrementAndGet() == 0) {
     synchronized (QUEUES) {
       for (BlockingQueue<Exchange> q : QUEUES.values()) {
         q.clear();
       }
       QUEUES.clear();
     }
   }
 }
Exemple #2
0
 @Override
 protected void doStart() throws Exception {
   super.doStart();
   START_COUNTER.incrementAndGet();
 }