@Input: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
The @Input annotation identifies an [[Spring_Cloud_Stream#Input_Channel|input channel]], through which received messages enter the application | The @Input annotation identifies an [[Spring_Cloud_Stream#Input_Channel|input channel]], through which received messages enter the application | ||
<syntaxhighlight lang='java'> | |||
public interface Sink { | |||
String INPUT = "input"; | |||
@Input(Sink.INPUT) | |||
SubscribableChannel input(); | |||
} | |||
</syntaxhighlight> |
Revision as of 20:59, 23 October 2018
Internal
Overview
The @Input annotation identifies an input channel, through which received messages enter the application
public interface Sink {
String INPUT = "input";
@Input(Sink.INPUT)
SubscribableChannel input();
}