@FunctionalInterface
public interface MessageInterceptor
message endpoints.
MessageInterceptors will usually be chained using a InterceptorChain.
A MessageInterceptor can be used in different ways like, for example:
Message Filters...and many other.
| Modifier and Type | Method and Description |
|---|---|
Message<java.lang.String> |
intercept(Message<java.lang.String> message)
Intercept a message and return the same message, a modified version of the incoming message, or null, if
the message should be filtered out and dropped by the
AbstractMessageEndpoint |
@Nullable Message<java.lang.String> intercept(@Nonnull Message<java.lang.String> message)
AbstractMessageEndpointmessage - the channel-layer message with payload-type beeing a String