Re: Can I control listener update frequency?
Carfield Yim <[email protected]> Thu, 7 Feb 2008 23:25:27 +0800
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
> Take the messages and dump them into a (threadsafe) queue. Then have > another thread that periodically removes everything from the queue, > prunes duplicate/obsolete messages, and then updates the collections > (i.e., triggering the listener event). This will slow your event > processing down so that the GUI will be responsive. > Well we already have that queue but we cannot prunes any of the message because the change are incremental. What I think is still update the underlying table module but not trigger the way update immediately. But I forget that we can do that in our application side. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com