Why drainTo is not present in regular collection framework?
Posted: Tue Jul 16, 2013 8:30 am
I was wondering why the method drainTo http://docs.oracle.com/javase/7/docs/ap ... ,%20int%29 of the BlockingQueue interface is not present in the Queue or any other interface belonging to the non-concurrent colletion framework.
Since one of the topic of concurrency for the exam is :
Thanks in advance.
The_Nick.
Since one of the topic of concurrency for the exam is :
I am kindly asking why.Use collections from the java.util.concurrent package with a focus on the advantages over and differences from the traditional java.util collections.
Thanks in advance.
The_Nick.