org.springframework.integration.dsl.channel.MessageChannels Java Examples

The following examples show how to use org.springframework.integration.dsl.channel.MessageChannels. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FileWriterIntegrationConfig.java    From spring-in-action-5-samples with Apache License 2.0 5 votes vote down vote up
@Profile("javadsl")
@Bean
public IntegrationFlow fileWriterFlow() {
  return IntegrationFlows
      .from(MessageChannels.direct("textInChannel"))
      .<String, String>transform(t -> t.toUpperCase())
      .handle(Files
          .outboundAdapter(new File("/tmp/sia5/files"))
          .fileExistsMode(FileExistsMode.APPEND)
          .appendNewLine(true))
      .get(); 
}
 
Example #2
Source File: BatchChannels.java    From messaging with Apache License 2.0 4 votes vote down vote up
@Bean
MessageChannel invalid() {
 return MessageChannels.direct().get();
}
 
Example #3
Source File: BatchChannels.java    From messaging with Apache License 2.0 4 votes vote down vote up
@Bean
MessageChannel completed() {
 return MessageChannels.direct().get();
}
 
Example #4
Source File: IntegrationConfiguration.java    From messaging with Apache License 2.0 4 votes vote down vote up
@Bean
MessageChannel txt() {
 return MessageChannels.direct().get();
}
 
Example #5
Source File: IntegrationConfiguration.java    From messaging with Apache License 2.0 4 votes vote down vote up
@Bean
MessageChannel csv() {
 return MessageChannels.direct().get();
}
 
Example #6
Source File: IntegrationConfiguration.java    From building-microservices with Apache License 2.0 4 votes vote down vote up
@Bean
MessageChannel files() {
    return MessageChannels.direct().get();
}
 
Example #7
Source File: SpectatorIntegrationMetricsTests.java    From spring-cloud-netflix-contrib with Apache License 2.0 4 votes vote down vote up
@Bean
public MessageChannel input() {
    return MessageChannels.direct().get();
}
 
Example #8
Source File: SpectatorIntegrationMetricsTests.java    From spring-cloud-netflix-contrib with Apache License 2.0 4 votes vote down vote up
@Bean
public MessageChannel output() {
    return MessageChannels.queue(10).get();
}
 
Example #9
Source File: JavaDSLFileCopyConfig.java    From tutorials with MIT License 4 votes vote down vote up
@Bean
public MessageChannel holdingTank() {
    return MessageChannels.queue().get();
}