public class MessageSelectingInterceptor extends ChannelInterceptorAdapter
ChannelInterceptor
that
delegates to a list of MessageSelectors
to decide
whether a Message
should be accepted on the MessageChannel
.Constructor and Description |
---|
MessageSelectingInterceptor(MessageSelector... selectors) |
Modifier and Type | Method and Description |
---|---|
Message<?> |
preSend(Message<?> message,
MessageChannel channel)
Invoked before the Message is actually sent to the channel.
|
postReceive, postSend, preReceive
public MessageSelectingInterceptor(MessageSelector... selectors)
public Message<?> preSend(Message<?> message, MessageChannel channel)
ChannelInterceptor
null
, then the actual
send invocation will not occur.preSend
in interface ChannelInterceptor
preSend
in class ChannelInterceptorAdapter