Replies: 1 comment 1 reply
-
Here is my understanding. Interceptors decorate an extremity of a channel formed by an For eg. outbound connectors actually subscribe like As for the default implementation. I guess this is purely fo historical reason. Before channel decorators, incoming messages (so outgoing message connector speaking) could be intercepted with a MessageConverter and |
Beta Was this translation helpful? Give feedback.
-
The naming in the ChannelDecorators doc is confusing me:
In https://smallrye.io/smallrye-reactive-messaging/4.0.0/concepts/decorators/#intercepting-outgoing-messages, it says
Smallrye Reactive Messaging provides a SubscriberDecorator by default to allow intercepting **outgoing** messages for a specific channel
.On the other hand, at the top of the page https://smallrye.io/smallrye-reactive-messaging/4.0.0/concepts/decorators/, it says
**@Incoming** channels and channels bound to an outbound connector are both Subscribers
.Also, why is there a default implementation of a SubscriberDecorator, but, apparently, not of a PublisherDecorator using
IncomingInterceptor
?Beta Was this translation helpful? Give feedback.
All reactions