org.springframework.integration.annotation.Splitter Java Examples

The following examples show how to use org.springframework.integration.annotation.Splitter. 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: SplitterService.java    From rocketmq-binder-demo with Apache License 2.0 3 votes vote down vote up
@Splitter(inputChannel = Sink.INPUT, outputChannel = SplitterApplication.SPLITTER_INPUT)
public String[] receiveBySplitter(String receiveMsg) {
	return receiveMsg.split("-");
}
 
Example #2
Source File: DemoApplication.java    From spring-cloud-sleuth with Apache License 2.0 3 votes vote down vote up
@Splitter(inputChannel = "greetings", outputChannel = "words")
public List<String> words(String greeting) {
	this.splitterSpan = this.tracer.currentSpan();
	return Arrays.asList(StringUtils.delimitedListToStringArray(greeting, " "));
}