Interface ProducerBindingMessageInterceptor
public interface ProducerBindingMessageInterceptor
Binding interceptor for producer bindings.
Instances are created per-binding by ProducerBindingMessageInterceptorFactory
with all configuration resolved at creation time.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidIntercept messages after they're processed by producer bindings.default org.springframework.messaging.Message<?>before(org.springframework.messaging.Message<?> message) Intercept messages before they're handed-off to producer bindings.
-
Method Details
-
before
default org.springframework.messaging.Message<?> before(org.springframework.messaging.Message<?> message) Intercept messages before they're handed-off to producer bindings.- Parameters:
message- the message.- Returns:
- the message to continue processing with.
-
after
default void after(org.springframework.messaging.Message<?> message, boolean sent, @Nullable Exception ex) Intercept messages after they're processed by producer bindings.
Note: This is only invoked if
before(Message)successfully returns with a message.- Parameters:
message- the message.sent- whether the message was sent.ex- the exception thrown by the producer binding's message channel.
-