0

EventQueue

asked 2012-06-20 08:24:48 +0800

pajarokillo gravatar image pajarokillo
9

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!

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-08-06 01:38:10 +0800

paowang gravatar image paowang
140 6

If there is no listener when a event publishing, the event will be skipped and released, I think.

link publish delete flag offensive edit

answered 2012-08-07 00:13:46 +0800

rdgrimes gravatar image rdgrimes
735 7

updated 2012-08-07 00:14:21 +0800

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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-06-20 08:24:48 +0800

Seen: 204 times

Last updated: Aug 07 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More