예제 #1
0
 @Override
 public void stop() {
   super.stop();
   if (null != this.senderPool) {
     this.senderPool.shutdownNow();
     this.senderPool = null;
   }
   if (null != this.connectionFactory) {
     this.connectionFactory.destroy();
   }
   this.retryTimer.cancel();
   this.routingKeyLayout.stop();
 }
 public void stop() {
   if (debug) {
     System.err.println(String.format("%s.stop()", this));
   }
   if (riemannClient != null) {
     try {
       riemannClient.disconnect();
     } catch (IOException ex) {
       // do nothing, it's ok
     }
   }
   super.stop();
 }