discardChannel

fun discardChannel(discardChannel: MessageChannel)

Specify a channel where rejected Messages should be sent. If the discard channel is null (the default), rejected Messages will be dropped. A "Rejected Message" means that split function has returned an empty result (but not null): no items to iterate for sending.

Parameters

discardChannel

The discard channel.


fun discardChannel(discardChannelName: String)

Specify a channel bean name where rejected Messages should be sent. If the discard channel is null (the default), rejected Messages will be dropped. A "Rejected Message" means that split function has returned an empty result (but not null): no items to iterate for sending.

Parameters

discardChannelName

The discard channel bean name.