Tabnine Logo
EventDrivenConsumer.setBeanName
Code IndexAdd Tabnine to your IDE (free)

How to use
setBeanName
method
in
org.springframework.integration.endpoint.EventDrivenConsumer

Best Java code snippets using org.springframework.integration.endpoint.EventDrivenConsumer.setBeanName (Showing top 3 results out of 315)

origin: spring-cloud/spring-cloud-consul

  @Override
  protected Binding<MessageChannel> doBindProducer(String name, MessageChannel channel, ProducerProperties properties) {
    Assert.isInstanceOf(SubscribableChannel.class, channel);

    logger.debug("Binding Consul client to eventName " + name);
    ConsulSendingHandler sendingHandler = new ConsulSendingHandler(this.eventService.getConsulClient(), name);

    EventDrivenConsumer consumer = new EventDrivenConsumer((SubscribableChannel) channel, sendingHandler);
    consumer.setBeanFactory(getBeanFactory());
    consumer.setBeanName(String.format(BEAN_NAME_TEMPLATE, name));
    consumer.afterPropertiesSet();
    consumer.start();

    return new DefaultBinding<>(name, null, channel, consumer);
  }
}
origin: org.springframework.cloud/spring-cloud-consul-binder

  @Override
  protected Binding<MessageChannel> doBindProducer(String name, MessageChannel channel, ProducerProperties properties) {
    Assert.isInstanceOf(SubscribableChannel.class, channel);

    logger.debug("Binding Consul client to eventName " + name);
    ConsulSendingHandler sendingHandler = new ConsulSendingHandler(this.eventService.getConsulClient(), name);

    EventDrivenConsumer consumer = new EventDrivenConsumer((SubscribableChannel) channel, sendingHandler);
    consumer.setBeanFactory(getBeanFactory());
    consumer.setBeanName(String.format(BEAN_NAME_TEMPLATE, name));
    consumer.afterPropertiesSet();
    consumer.start();

    return new DefaultBinding<>(name, null, channel, consumer);
  }
}
origin: org.springframework.xd/spring-xd-messagebus-spi

private void bindProducerDirectly(String name, SubscribableChannel producerChannel,
    MessageChannel consumerChannel, AbstractBusPropertiesAccessor properties) {
  DirectHandler handler = new DirectHandler(consumerChannel);
  EventDrivenConsumer consumer = new EventDrivenConsumer(producerChannel, handler);
  consumer.setBeanFactory(getBeanFactory());
  consumer.setBeanName("outbound." + name);
  consumer.afterPropertiesSet();
  Binding binding = Binding.forDirectProducer(name, producerChannel, consumer, properties);
  addBinding(binding);
  binding.start();
  if (logger.isInfoEnabled()) {
    logger.info("Producer bound directly: " + binding);
  }
}
org.springframework.integration.endpointEventDrivenConsumersetBeanName

Popular methods of EventDrivenConsumer

  • <init>
  • getComponentName
  • start
  • afterPropertiesSet
  • isRunning
  • getHandler
  • getPhase
  • isAutoStartup
  • logComponentSubscriptionEvent
  • setBeanFactory
  • setPhase
  • setPhase

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Best IntelliJ plugins
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