Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean way to customize behaviors when receiving/sending messages #23

Closed
jiahuijiang opened this issue Dec 1, 2016 · 1 comment
Closed
Labels

Comments

@jiahuijiang
Copy link

In the old ls-api, in order to log customized log messages, I just needed to implement MessageTracer for onError, onRead and onWrite. But in the new Launcher class, everything is pretty tightly coupled.
Is there a clean way I can customize the behaviors when receiving/sending messages?

@svenefftinge
Copy link
Contributor

Yes, incoming messages are consumed through MessageConsumer, outgoing are through MessageProducer. You need to implement a logging version of them that delegate to the real implementation and install them into the chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants