The order can only be guaranteed for the events that are fired with post. If a single thread does a post eventA followed immediately by a send eventB there is no specified order in which a single listener will receive the two events eventA and eventB.
Tom |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |"Alan D. Cabrera" <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |OSGi Developer Mail List <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |06/18/2010 01:04 PM | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Re: [osgi-dev] Event ordering in EventAdmin | >--------------------------------------------------------------------------------------------------------------------------------------------------| A thread alternatively calls send and post. Is there an expected ordering for all those events sent by that thread? Regards, Alan On Jun 18, 2010, at 10:29 AM, BJ Hargrave wrote: See 113.7.3. The delivery ordering of sent events cannot be specified since they are synchronously delivered. The delivery ordering of posted events is specified. They are delivered in the order in which they are received by postEvent. -- BJ Hargrave Senior Technical Staff office: +1 386 848 Member, IBM 1781 OSGi Fellow and CTO of the mobile: +1 386 848 OSGi Alliance 3788 [email protected] From: "Alan D. Cabrera" <[email protected]> To: OSGi Developer Mail List <[email protected]> Date: 2010/06/18 13:18 Subject: [osgi-dev] Event ordering in EventAdmin Sent by: [email protected] Is there any ordering restrictions between events sent via send and post? Regards, Alan _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
