Class NullChannel

All Implemented Interfaces:
Aware, BeanNameAware, DisposableBean, IntegrationPattern, NamedComponent, IntegrationManagement, MessageChannel, PollableChannel

public class NullChannel
extends Object
implements PollableChannel, BeanNameAware, IntegrationManagement, IntegrationPattern
A channel implementation that essentially behaves like "/dev/null". All receive() calls will return null, and all send(org.springframework.messaging.Message<?>, long) calls will return true although no action is performed. Unless the payload of a sent message is a Publisher implementation, in which case the Publisher.subscribe(Subscriber) is called to initiate the reactive stream, although the data is discarded by this channel. An error thrown from a reactive stream processing (see Subscriber.onError(Throwable)) is logged under the warn level. Note however that the invocations are logged at debug-level.
Mark Fisher, Gary Russell, Artem Bilan