Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 65681 invoked from network); 1 Mar 2003 21:35:01 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 1 Mar 2003 21:35:01 -0000 Received: (qmail 19103 invoked by uid 97); 1 Mar 2003 21:36:44 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 19096 invoked from network); 1 Mar 2003 21:36:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 1 Mar 2003 21:36:44 -0000 Received: (qmail 65459 invoked by uid 500); 1 Mar 2003 21:35:00 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 65448 invoked from network); 1 Mar 2003 21:34:59 -0000 Received: from f139.law15.hotmail.com (HELO hotmail.com) (64.4.23.139) by daedalus.apache.org with SMTP; 1 Mar 2003 21:34:59 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 1 Mar 2003 13:35:05 -0800 Received: from 12.252.55.153 by lw15fd.law15.hotmail.msn.com with HTTP; Sat, 01 Mar 2003 21:35:05 GMT X-Originating-IP: [12.252.55.153] From: "David Graham" To: commons-dev@jakarta.apache.org Bcc: Subject: [collections] BlockingQueue addition Date: Sat, 01 Mar 2003 14:35:05 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Mar 2003 21:35:05.0349 (UTC) FILETIME=[6C89CB50:01C2E03A] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N While I am a committer in the commons I've never worked with the collections project before so I thought I'd float this idea before committing anything. I have developed a useful queue implementation that allows threads to communicate to each other. The queue methods block when the queue is full and when it's empty. So, one thread can be dumping objects into the queue while another reads from it. I also have a subclass of BlockingQueue called UnboundedBlockingQueue that has no maximum capacity. I have opened an enhancement request with the attached source: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17327 If there's any interest in this I can commit the source and test cases. Thanks, David _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org