@Input: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
=Overview=
=Overview=


The @Input annotation designates a factory method for an [[Spring_Cloud_Stream#Input_Channel|input channel]], through which received messages enter the application. It can be configured with the channel name.
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'>
<syntaxhighlight lang='java'>

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();
}