Handler Field Filter Clash Error
An error indicating that two message handlers have clashing ByField filtering signatures.
Two handlers clash if they handle the same type of message but filter messages by different fields. For example:
\@Subscribe(filter = @ByField(path = "member_count", value = "0"))
public void onProject(ProjectStarted event) {
}
\@Subscribe(filter = @ByField(path = "by.admin", value = "false"))
public void onStarted(ProjectStarted event) {
}
Content copied to clipboard
Both methods onProject
and onStarted
subscribe to ProjectStarted
but filter the events by member_count
and by.admin
fields respectively. This is an invalid situation, since both filters could be satisfied simultaneously.