@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 |
|---|---|
TextMessage |
intercept(TextMessage 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 TextMessage intercept(@Nonnull TextMessage message)
AbstractMessageEndpointmessage - the channel-layer message with payload-type beeing a String