On Jul 14, 2009, at 9:55 AM, Matteo Pelucco wrote:


Grégory Joseph ha scritto:
The listener will be triggered after delay if no other event show up. If other events keep on coming, the listener will still be triggered in any case after maxDelay.

Thanks Grég,
let me clarify.

0) I've defined a new listener
  - node type: MyType
  - node path...
  - delay: 10000
  - maxDelay: 15000
  - event type: NODE_ADDED

1) A new node (N1) is created, Time = 0
2) N1 is updated (property changed), Time = 5000
3) A new node (N2) is created, Time = 8000
4) A new node (N3) is created, Time = 12000
5) A new node (N4) is created, Time = 18000

How many times the listening command is called? On what node? And when?

I suppose:

Listening command is executed 5 times (why it shouldn't?).
It is called on every node.
N1 --> 15000
N2 --> 8000 + 15000
N3 --> 12000 + 15000
N4 --> 18000 + 10000

It is correct?

I'm not sure how you calculated that, but I'd say the listener will be triggered twice: once for {N1, N2, N3} and once for {N4}. I might be wrong; I know there's a testcase for that stuff, you might want to look it up. Or just experiment :p

Cheers,

-g




Thanks for loosing time...
Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to