@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:
...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
MessageEndpoint |
Message<java.lang.String> intercept(Message<java.lang.String> message)
MessageEndpointmessage - the channel-layer message with payload-type beeing a String