Example usage for org.springframework.integration.channel DirectChannel DirectChannel

List of usage examples for org.springframework.integration.channel DirectChannel DirectChannel

Introduction

In this page you can find the example usage for org.springframework.integration.channel DirectChannel DirectChannel.

Prototype

public DirectChannel() 

Source Link

Document

Create a channel with default RoundRobinLoadBalancingStrategy

Usage

From source file:com.acmemotors.Main.java

@Bean
public MessageChannel requests() {
    return new DirectChannel();
}

From source file:io.spring.batch.configuration.IntegrationConfiguration.java

@Bean
protected DirectChannel jobTweets() {
    return new DirectChannel();
}

From source file:com.acmemotors.Main.java

@Bean
public MessageChannel replies() {
    return new DirectChannel();
}

From source file:org.thingsplode.server.BusConfig.java

@Bean
@Description("Error messages are going here.")
public MessageChannel errorChannel() {
    return new DirectChannel();
}

From source file:mx.uaq.facturacion.enlace.system.EmailSystemTest.java

@Bean(name = "uploadFacturaFtpChannel", autowire = Autowire.BY_NAME)
public MessageChannel getObject() {
    return new DirectChannel();
}

From source file:io.spring.batch.configuration.IntegrationConfiguration.java

@Bean
protected DirectChannel statusTweets() {
    DirectChannel channel = new DirectChannel();

    return channel;
}

From source file:com.acmemotors.Main.java

@Bean
public MessageChannel results() {
    return new DirectChannel();
}

From source file:io.jmnarloch.spring.cloud.stream.binder.hermes.HermesClientBinderTest.java

@Test
public void shouldPublishMessage() {

    // given/*ww  w .  ja  v  a  2s  .  c om*/
    DirectChannel output = new DirectChannel();

    // when
    Binding<MessageChannel> binding = binder.bindProducer(OUTPUT_NAME, output,
            new ExtendedProducerProperties<>(new HermesProducerProperties()));

    // then
    output.send(new GenericMessage<>(MESSAGE, json()));
    verify(hermesSender).send(any(URI.class), any(HermesMessage.class));
    binding.unbind();
}

From source file:hello.CrawlerApp.java

@Bean
public MessageChannel channel2() {
    return new DirectChannel();
}

From source file:hello.CrawlerApp.java

@Bean
public MessageChannel channel3() {
    return new DirectChannel();
}