public class MessageSelectingInterceptor
extends org.springframework.messaging.support.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 |
---|---|
org.springframework.messaging.Message<?> |
preSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel) |
public MessageSelectingInterceptor(MessageSelector... selectors)
public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
preSend
in interface org.springframework.messaging.support.ChannelInterceptor
preSend
in class org.springframework.messaging.support.ChannelInterceptorAdapter