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

Improve SyncUserProcessor#interest method #117

Open
long187 opened this issue Nov 14, 2018 · 0 comments
Open

Improve SyncUserProcessor#interest method #117

long187 opened this issue Nov 14, 2018 · 0 comments
Assignees

Comments

@long187
Copy link

long187 commented Nov 14, 2018

SyncUserProcessor#interest method used to determine if the message is process by this Processor, this method return a String, bolt framework matches the message class name with this String, if it matches, this message will be processed, this way is a bit inflexible. For example, the user has a BaseMassage, and the subclass of BaseMessage is processed by this Processor.

So, if the SyncUserProcessor#interest method returns a boolean type and the framework pass the message type as a parameter, let the user decide if the message type can be processed, if it can, return true, otherwise return false, it will be more flexible.

@long187 long187 changed the title SyncUserProcessor.interest改进,支持用户决定是消息是否由该Processor处理 Improve SyncUserProcessor#interest method Nov 14, 2018
@dbl-x dbl-x self-assigned this Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants