james-bright-helix commented on issue #9803:
URL: https://github.com/apache/pulsar/issues/9803#issuecomment-790624068


   Thanks, good to know I'm not going mad. 
   
   IMO it's not great that to implement an interceptor requires cast to 
`MessageImpl` or `TopicMessageImpl` and then `MessageImpl` and it makes those 
interceptors fragile to future changes. 
   
   It would be nice to have a type-safe way to modify the message either with 
something that lets me build a new message from an existing message (copies id, 
value, properties, etc.) or directly mutate the message by exposing some 
mutable interface to the interceptors. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to