In an earlier post we introduced the Collections package, which includes several ways of keeping track of objects in your application. The Collections package includes a number of very powerful features, such as search using the specification pattern and many ways of sorting your data. The latter will be elaborated upon in this article.
Continue reading ‘Sorting and custom sorting’
Articles
Tag Archive for 'list'
Asynchronous queue demo with a LinkedList
This post will show you the principle of an asynchronous queue, demonstrating it with the LinkedList structure in our package, used as a Queue by making it’s datatype nl.dpdk.collections.core.IQueue.
An Asynchrounous Queue is a queue that is processed with asynchrounous operations. Instead of processing a Queue in synchronous fashion, where you would remove all items from the queue in a loop, the items are removed only when the previous operation has finished (succesfully or not). The time when this is handled is not known in advance, and is event driven rather than procedurally driven.
Most browser cannot handle more than a couple of simultaneous http requests from flash, and just trying to load them all at once (in a loop) is error prone. A queue is a lifesaver in a case like this.
Continue reading ‘Asynchronous queue demo with a LinkedList’