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.MessageChannelgetOutputChannel()Return the the output channel.voidsetOutputChannel(org.springframework.messaging.MessageChannel outputChannel)Specify theMessageChannelto which produced Messages should be sent.default voidsetOutputChannelName(java.lang.String outputChannel)Specify the bean name of theMessageChannelto which produced Messages should be sent.
-
Method Details
-
setOutputChannel
void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)Specify theMessageChannelto which produced Messages should be sent.- Parameters:
outputChannel- The output channel.
-
setOutputChannelName
default void setOutputChannelName(java.lang.String outputChannel)Specify the bean name of theMessageChannelto 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
-