@Input: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Spring Cloud Stream =Overview= The @Input annotation identifies an input channel, through which received messages enter the...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
The @Input annotation | The @Input annotation designates a factory method for an [[Spring_Cloud_Stream#Input_Channel|input channel]], through which received messages enter the application. The annotation is configured with the [[Spring_Cloud_Stream#Channel_Name|channel name]]. | ||
<syntaxhighlight lang='java'> | |||
public interface Sink { | |||
String INPUT = "input"; | |||
@Input(Sink.INPUT) | |||
SubscribableChannel input(); | |||
} | |||
</syntaxhighlight> |
Latest revision as of 18:55, 24 October 2018
Internal
Overview
The @Input annotation designates a factory method for an input channel, through which received messages enter the application. The annotation is configured with the channel name.
public interface Sink {
String INPUT = "input";
@Input(Sink.INPUT)
SubscribableChannel input();
}