示例#1
0
  @Override
  protected void doStart() throws Exception {
    super.doStart();

    if (producerCache == null) {
      producerCache = new ProducerCache(this, getCamelContext(), cacheSize);
    }
    ServiceHelper.startService(producerCache);
  }
示例#2
0
  @Override
  protected void doStop() throws Exception {
    ServiceHelper.stopService(producerCache);

    super.doStop();
  }