@Input: Difference between revisions

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


The @Input annotation identifies an [[Spring_Cloud_Stream#Input_Channel|input channel]], through which received messages enter the application
The @Input annotation designates a factory method for an [[Spring_Cloud_Stream#Input_Channel|input channel]], through which received messages enter the application


<syntaxhighlight lang='java'>
<syntaxhighlight lang='java'>

Revision as of 05:29, 24 October 2018

Internal

Overview

The @Input annotation designates a factory method for an input channel, through which received messages enter the application

public interface Sink {
  String INPUT = "input";

  @Input(Sink.INPUT)
  SubscribableChannel input();
}