You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
long187
changed the title
SyncUserProcessor.interest改进,支持用户决定是消息是否由该Processor处理
Improve SyncUserProcessor#interest method
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.
The text was updated successfully, but these errors were encountered: