-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi!,
I'm developing a web application with ZK 5.0.9, and i'm working with EventQueue for manage events asynchronous.
I have one a doubt:
what happen when i publish an event but nobody consume that event published?
that event remains in memory forever?
Thanks!
I believe, from my observation, the published event is lost. The reason I think this is because I had a case where my publish event got fired before I could set up a listener. Once the listener was then established, the previously published event never got picked up by the listener. So, by altering the timing, the listener picked up the event that was pushed, and all was well. That suggests to me that the ZK framework, upon receiving an event push, sends the event out to all subscribers, and, if there are none, it's just lost. and dequeued.
Asked: 2012-06-20 08:24:48 +0800
Seen: 204 times
Last updated: Aug 07 '12