top-image

Tag archives for BlockingQueue

Java: A concrete example of Queue’s utilization: Multi Servers Dispatching (Part8)
After my posts concerning presentation of Queue/BlockingQueue, and the Queue/BlockingQueue implementations I would continue with a post about a concrete example of these implementations: the Multi servers dispatching. Multi-server operating system: This system provides a pool of available connections due to: ConfigParametersAndUtils: Configuration's parameters and useful methods MyHostConnectionProxy: Encapsulates the real connection. This class manage the connection transaction timeout too, if a connection duration ...more»
Java: BlockingQueue implementation DelayQueue (Part7)
After my post concerning presentation of Queue/BlockingQueue, I would continue with a post about the BlockingQueue implementation: java.util.concurrent.DelayQueue. This implementation of BlockingQueue stores and keeps the elements internally until a certain delay has expired. So, this queue is an unbounded blocking queue of Delayed elements, in which an element can only be taken when its delay has expired.The head of the ...more»
Java: BlockingQueue implementation PriorityBlockingQueue (Part6)
After my post concerning presentation of Queue/BlockingQueue, I would continue with a post about the BlockingQueue implementation: java.util.concurrent.PriorityBlockingQueue. This implementation of BlockingQueue stores and keeps the elements internally in a unbounded concurrent queue. These elements are ordered and weighted in accordance with a order based on a priority heap. This order is not necessarily the FIFO (First In, First Out) order. ...more»
Java: BlockingQueue implementation SynchronousQueue (Part5)
After my post concerning presentation of Queue/BlockingQueue, I would continue with a post about the BlockingQueue implementation: java.util.concurrent.SynchronousQueue. This implementation of BlockingQueue stores and keeps ONLY a single element internally. For example, a producer thread inserting an element into the queue is blocked until another consumer thread takes that element from the queue. Similarly, if the consumer thread tries to take ...more»
bottom-img
Copyright ® 2012 Huseyin Ozveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.