Tabnine Logo
ConsumerTemplate.stop
Code IndexAdd Tabnine to your IDE (free)

How to use
stop
method
in
org.apache.camel.ConsumerTemplate

Best Java code snippets using org.apache.camel.ConsumerTemplate.stop (Showing top 4 results out of 315)

origin: jooby-project/jooby

@PreDestroy
public void stop() throws Exception {
 try {
  this.consumer.stop();
 } catch (Exception ex) {
  log.error("Can't stop consumer template", ex);
 }
 try {
  this.producer.stop();
 } catch (Exception ex) {
  log.error("Can't stop producer template", ex);
 }
 try {
  this.ctx.stop();
 } catch (Exception ex) {
  log.error("Can't stop camel context template", ex);
 }
}
origin: org.apache.camel/camel-test

private static void doStopTemplates(ConsumerTemplate consumer, ProducerTemplate template, FluentProducerTemplate fluentTemplate) throws Exception {
  if (consumer != null) {
    if (consumer == threadConsumer.get()) {
      threadConsumer.remove();
    }
    consumer.stop();
  }
  if (template != null) {
    if (template == threadTemplate.get()) {
      threadTemplate.remove();
    }
    template.stop();
  }
  if (fluentTemplate != null) {
    if (fluentTemplate == threadFluentTemplate.get()) {
      threadFluentTemplate.remove();
    }
    fluentTemplate.stop();
  }
}
origin: org.jooby/jooby-camel

@PreDestroy
public void stop() throws Exception {
 try {
  this.consumer.stop();
 } catch (Exception ex) {
  log.error("Can't stop consumer template", ex);
 }
 try {
  this.producer.stop();
 } catch (Exception ex) {
  log.error("Can't stop producer template", ex);
 }
 try {
  this.ctx.stop();
 } catch (Exception ex) {
  log.error("Can't stop camel context template", ex);
 }
}
origin: mpilone/hazelcastmq

consumerTemplate.stop();
camelContext.stop();
org.apache.camelConsumerTemplatestop

Popular methods of ConsumerTemplate

  • receiveBody
  • receive
  • start
  • doneUoW

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now