367368369370371372373374375376377
if (null != producer && (producer.isRunning() || producer.isPaused())) { producer.shutdown(); try { producer.waitForShutdown(); } catch (InterruptedException ie) { } LOG.info("EventProducer is shutdown!"); }