@Override protected void doStart() throws Exception { super.doStart(); if (producerCache == null) { producerCache = new ProducerCache(this, getCamelContext(), cacheSize); } ServiceHelper.startService(producerCache); }
@Override protected void doStop() throws Exception { ServiceHelper.stopService(producerCache); super.doStop(); }