Class NullChannel

java.lang.Object
org.springframework.integration.channel.NullChannel
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, IntegrationPattern, NamedComponent, IntegrationManagement, org.springframework.messaging.MessageChannel, org.springframework.messaging.PollableChannel

@IntegrationManagedResource
public class NullChannel
extends java.lang.Object
implements org.springframework.messaging.PollableChannel, org.springframework.beans.factory.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.