I've got 2 running classes registered for EventBus events - instance A and instance B. Both of them have implemented onEvent(SampleEvent event)
method for receiving EventBus.post(new SampleEvent(int foo, String bar));
from a place C. So far so good.
But there is a time when I need to post SampleEvent
from B to A. Is it possible to tell B that it shouldn't process SampleEvent
sent by itself, or I need to do workaround like setting a flag in SampleEvent
?