event processing sequence

4 views
Skip to first unread message

Brandon Pedersen

unread,
Aug 19, 2011, 10:42:32 PM8/19/11
to colony...@googlegroups.com
Hi,

I notice that events are namespace driven, meaning an event of foo.bar
will go to event subscribers for foo and foo.bar. Is there a way to
enforce ordering of the events as they are given to subscribers. For
instance, if I have one subscriber of foo.bar and one subscriber of
foo and send an event foo.bar, can I ensure that the subscriber of
foo.bar receives and processes the event before the foo subscriber or
vice versa? This probably seems like a convoluted situation....and it
probably is, now that I am writing it out :)....either way, just
curious about this, I may find another way to do this...

I guess the general question is I want to fire an event to cause
something to happen in one plugin, and another thing to happen in
another but I need to ensure that the first action happens before the
second. Another way to handle this would be to track whether the
processing of an event is complete or not. Is that possible either?

Thanks,

-Brandon

João Magalhães

unread,
Aug 21, 2011, 11:15:32 AM8/21/11
to colony...@googlegroups.com
I guess order is not defined in the event part of the colony spec.
Currently the order of event handling is defined by each specific colony implementation.
I think the best solution to you problem is to apply a specific heuristic to solve it.

Brandon Pedersen

unread,
Aug 21, 2011, 6:51:15 PM8/21/11
to colony...@googlegroups.com
2011/8/21 João Magalhães <joa...@gmail.com>:

> I guess order is not defined in the event part of the colony spec.
> Currently the order of event handling is defined by each specific colony implementation.
> I think the best solution to you problem is to apply a specific heuristic to solve it.

That's what I figured. No problem, just thought it would be an
interesting way to handle this but I have another way to do it.
Thanks,

-Brandon

Reply all
Reply to author
Forward
0 new messages