Interface MessageProducer

All Known Implementing Classes:
AbstractAmqpOutboundEndpoint, AbstractCorrelatingMessageHandler, AbstractHazelcastMessageProducer, AbstractHttpRequestExecutingMessageHandler, AbstractInternetProtocolReceivingChannelAdapter, AbstractMessageProducingHandler, AbstractMessageSplitter, AbstractMqttMessageDrivenChannelAdapter, AbstractRemoteFileOutboundGateway, AbstractReplyProducingMessageHandler, AbstractReplyProducingPostProcessingMessageHandler, AbstractWebServiceOutboundGateway, AbstractXmppConnectionAwareEndpoint, AggregatingMessageHandler, AmqpInboundChannelAdapter, AmqpOutboundEndpoint, ApacheCommonsFileTailingMessageProducer, ApplicationEventListeningMessageProducer, AsyncAmqpOutboundGateway, BarrierMessageHandler, BridgeHandler, CamelMessageHandler, CassandraMessageHandler, ChatMessageListeningEndpoint, ContentEnricher, DefaultMessageSplitter, DelayHandler, ExpressionEvaluatingSplitter, ExpressionMessageProducerSupport, FileSplitter, FileTailingMessageProducerSupport, FileWritingMessageHandler, FluxAggregatorMessageHandler, FtpOutboundGateway, GatewayMessageHandler, GraphQlMessageHandler, HazelcastClusterMonitorMessageProducer, HazelcastContinuousQueryMessageProducer, HazelcastEventDrivenMessageProducer, HttpRequestExecutingMessageHandler, ImapIdleChannelAdapter, JdbcOutboundGateway, JmsMessageDrivenEndpoint, JmsOutboundGateway, JpaOutboundGateway, KafkaMessageDrivenChannelAdapter, KafkaProducerMessageHandler, MarshallingWebServiceOutboundGateway, MessageFilter, MessageHandlerChain, MessageProducerSupport, MessageTransformingHandler, MethodInvokingSplitter, MockMessageHandler, MongoDbChangeStreamMessageProducer, MongoDbOutboundGateway, MqttPahoMessageDrivenChannelAdapter, Mqttv5PahoMessageDrivenChannelAdapter, MulticastReceivingChannelAdapter, NotificationListeningMessageProducer, OperationInvokingMessageHandler, OSDelegatingFileTailingMessageProducer, PresenceListeningEndpoint, ReactiveMessageSourceProducer, ReactiveRedisStreamMessageProducer, RedisInboundChannelAdapter, RedisOutboundGateway, RedisQueueMessageDrivenEndpoint, RedisQueueOutboundGateway, ReplyProducingMessageHandlerWrapper, ResequencingMessageHandler, RSocketOutboundGateway, ScatterGatherHandler, ServiceActivatingHandler, SftpOutboundGateway, SimpleWebServiceOutboundGateway, SmbOutboundGateway, StompInboundChannelAdapter, StoredProcOutboundGateway, SyslogReceivingChannelAdapterSupport, TcpOutboundGateway, TcpReceivingChannelAdapter, TcpSyslogReceivingChannelAdapter, UdpSyslogReceivingChannelAdapter, UnicastReceivingChannelAdapter, UnZipResultSplitter, WebFluxRequestExecutingMessageHandler, WebSocketInboundChannelAdapter, XPathMessageSplitter, ZeroMqMessageProducer

public interface MessageProducer
Base interface for any component that is capable of sending messages to a MessageChannel.
Since:
2.0
Author:
Mark Fisher, Artem Bilan
  • Method Details

    • setOutputChannel

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

      default void setOutputChannelName(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 MessageChannel getOutputChannel()
      Return the the output channel.
      Returns:
      the channel.
      Since:
      4.3