List of usage examples for org.springframework.integration.channel DirectChannel DirectChannel
public DirectChannel()
From source file:org.opencredo.esper.integration.config.xml.UnmatchedListenerInboundChannelAdapterParserTest.java
@Test public void sendAnEsperContextMessageAndAssertThatListenerIsInvoked() { template = new EsperTemplate(); template.initialize();//ww w .j a v a 2s. com template.sendEvent(new MessageContext(new DirectChannel(), "testSourceId")); template.sendEvent("A simple string event object!"); assertEquals(1, listener.getNumberOfTimesInvoked()); assertEquals(1, unmatchedListener.getNumberOfTimesInvoked()); }
From source file:com.acme.ModuleConfiguration.java
@Bean
MessageChannel output() {
return new DirectChannel();
}
From source file:com.example.ReceiverConfiguration.java
@Bean public DirectChannel pubSubInputChannel() { return new DirectChannel(); }
From source file:com.example.ReceiverApplication.java
@Bean public MessageChannel pubsubInputChannel() { return new DirectChannel(); }
From source file:org.thingsplode.server.BusConfig.java
@Bean @Description("Entry to the messaging system through the gateway for requests.") public MessageChannel requestChannel() { AbstractMessageChannel ch = new DirectChannel(); ch.addInterceptor(0, channelLoggingInterceptor()); return ch;/* w w w .j a v a 2 s . co m*/ }
From source file:org.thingsplode.server.BusConfig.java
@Bean @Description("Entry to the messaging system through the gateway for sync messages.") public MessageChannel syncChannel() { AbstractMessageChannel ch = new DirectChannel(); ch.addInterceptor(0, channelLoggingInterceptor()); return ch;/*from ww w. j a va 2s . c o m*/ }
From source file:com.create.application.configuration.IntegrationConfiguration.java
@Bean public DirectChannel inboundFileChannel() { return new DirectChannel(); }
From source file:com.create.application.configuration.IntegrationConfiguration.java
@Bean public DirectChannel outboundJobRequestChannel() { return new DirectChannel(); }
From source file:io.spring.batch.configuration.IntegrationConfiguration.java
@Bean protected DirectChannel twitterChannel() { return new DirectChannel(); }
From source file:org.thingsplode.server.BusConfig.java
@Bean @Description("Exit from the messaging system through the gateway.") public MessageChannel responseChannel() { return new DirectChannel(); }