Outdated Event

You known that EventsAreNotCallBacks, therefore you dispatch your events in some EventQueue. An arbitrary amount of time can elapse between the event queuing and its actual processing. What happens if the event consumer has unregistered itself from the event producer? Two possibilities:

Personally, it tend to use DropOutdateEvents?, this is much more easy to handle (once you called removeListener, you can be sure that the eventOccured method is not called anymore), but this can lead to information loss.

-- PhilippeDetournay


Related: EventsAreNotCallBacks, GuiThread


CategoryEvents


EditText of this page (last edited February 25, 2007) or FindPage with title or text search