Class BridgeHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ExpressionCapable, Orderable, MessageProducer, HeaderPropagationAware, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class BridgeHandler
extends AbstractReplyProducingMessageHandler
A simple MessageHandler implementation that passes the request Message directly to the output channel without modifying it. The main purpose of this handler is to bridge a PollableChannel to a SubscribableChannel or vice-versa.

The BridgeHandler can be used as a stopper at the end of an assembly line of channels. In this setup the output channel doesn't have to be set, but if the output channel is omitted the REPLY_CHANNEL MUST be set on the message. Otherwise, a MessagingException will be thrown at runtime.

Author:
Mark Fisher, Iwein Fuld, Marius Bogoevici