Interface MessageProducer

All Known Implementing Classes:
AbstractCorrelatingMessageHandler, AbstractMessageProducingHandler, AbstractMessageSplitter, AbstractReplyProducingMessageHandler, AbstractReplyProducingPostProcessingMessageHandler, AggregatingMessageHandler, BarrierMessageHandler, BridgeHandler, ContentEnricher, DefaultMessageSplitter, DelayHandler, ExpressionEvaluatingSplitter, ExpressionMessageProducerSupport, FluxAggregatorMessageHandler, GatewayMessageHandler, MessageFilter, MessageHandlerChain, MessageProducerSupport, MessageTransformingHandler, MethodInvokingSplitter, ReactiveMessageSourceProducer, ReplyProducingMessageHandlerWrapper, ResequencingMessageHandler, ScatterGatherHandler, ServiceActivatingHandler

public interface MessageProducer
Base interface for any component that is capable of sending messages to a MessageChannel.
Since:
2.0
  • Method Summary

    Modifier and Type Method Description
    org.springframework.messaging.MessageChannel getOutputChannel()
    Return the the output channel.
    void setOutputChannel​(org.springframework.messaging.MessageChannel outputChannel)
    Specify the MessageChannel to which produced Messages should be sent.
    default void setOutputChannelName​(java.lang.String outputChannel)
    Specify the bean name of the MessageChannel to which produced Messages should be sent.
  • Method Details

    • setOutputChannel

      void setOutputChannel​(org.springframework.messaging.MessageChannel outputChannel)
      Specify the MessageChannel to which produced Messages should be sent.
      Parameters:
      outputChannel - The output channel.
    • setOutputChannelName

      default void setOutputChannelName​(java.lang.String outputChannel)
      Specify the bean name of the MessageChannel to which produced Messages should be sent.
      Parameters:
      outputChannel - The output channel bean name.
      Since:
      5.1.2
    • getOutputChannel

      @Nullable org.springframework.messaging.MessageChannel getOutputChannel()
      Return the the output channel.
      Returns:
      the channel.
      Since:
      4.3