codebytes: DelayQueue Usage Java Concurrency
DelayQueue is an unbounded BlockingQueue of objects that implement the Delayed interface. An object can only be taken from the queue when its delay has expired. The queue is sorted so that the object at the head has a delay that has expired for the longest time. If no delay has expired, then there is no head element and poll() will return null.Read full article from codebytes: DelayQueue Usage Java Concurrency
No comments:
Post a Comment