Package de.otto.synapse.subscription
Class SubscriptionInterceptor
- java.lang.Object
-
- de.otto.synapse.subscription.SubscriptionInterceptor
-
- All Implemented Interfaces:
MessageInterceptor
public class SubscriptionInterceptor extends java.lang.Object implements MessageInterceptor
-
-
Constructor Summary
Constructors Constructor Description SubscriptionInterceptor(Subscription subscription, MessageSenderEndpoint targetSenderEndpoint)
-
Method Summary
Modifier and Type Method Description TextMessageintercept(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 theAbstractMessageEndpoint
-
-
-
Constructor Detail
-
SubscriptionInterceptor
public SubscriptionInterceptor(Subscription subscription, MessageSenderEndpoint targetSenderEndpoint)
-
-
Method Detail
-
intercept
@Nullable public TextMessage intercept(@Nonnull TextMessage message)
Description copied from interface:MessageInterceptorIntercept 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 theAbstractMessageEndpoint- Specified by:
interceptin interfaceMessageInterceptor- Parameters:
message- the channel-layer message with payload-type beeing a String- Returns:
- intercepted version of the message, or null if the message should be dropped.
-
-