Example #1
0
 public void destroy() {
   if (consumer != null) {
     consumer.shutdown();
     logger.info(
         "consumer shutdown! topic={0},subExpression={1},group={2}",
         topic.getTopic(), subExpression, group);
   }
 }
 /** 停止工作 */
 private void stop() {
   if (enableSend) mqConsumer.shutdown();
   if (enableRecv) mqProducer.shutdown();
 }