Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 53786 invoked from network); 21 Dec 2009 18:57:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Dec 2009 18:57:41 -0000 Received: (qmail 95637 invoked by uid 500); 21 Dec 2009 18:57:41 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95514 invoked by uid 500); 21 Dec 2009 18:57:40 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 95470 invoked by uid 99); 21 Dec 2009 18:57:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2009 18:57:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2009 18:57:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 239CB234C045 for ; Mon, 21 Dec 2009 10:57:18 -0800 (PST) Message-ID: <1811102002.1261421838134.JavaMail.jira@brutus> Date: Mon, 21 Dec 2009 18:57:18 +0000 (UTC) From: "Michael Thomas (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (COLLECTIONS-347) [contribution] LimitedSizeFifoMap In-Reply-To: <318079714.1261170998309.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COLLECTIONS-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Thomas updated COLLECTIONS-347: --------------------------------------- Description: The {{LimitedSizeFifoMap}} never exceeds a given element limit by deleting old entries, whenever new ones are inserted. It may be of use for caches holding memory-intense objects (it is for me, anyway). The patch contains: * the interface {{LimitedSizeMap}} * the fully documented implementation {{LimitedSizeFifoMap}}, which deletes the oldest items first * the accompanying unit test If you find anything that needs improvement, please let me know. was: The {{LimitedSizeFifoMap}} never exceeds a given element limit by deleting old entries, whenever new ones are inserted. It may be of use for caches holding memory-intense objects (it is for me, anyway). The patch contains: * the marker interface {{LimitedSizeMap}} * the fully documented implementation {{LimitedSizeFifoMap}}, which deletes oldest items first * the accompanying unit test If you find anything that needs improvement, please let me know. > [contribution] LimitedSizeFifoMap > --------------------------------- > > Key: COLLECTIONS-347 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-347 > Project: Commons Collections > Issue Type: New Feature > Components: Map > Reporter: Michael Thomas > Priority: Minor > Attachments: LimitedSizeFifoMap.patch, LimitedSizeFifoMap.patch > > > The {{LimitedSizeFifoMap}} never exceeds a given element limit by deleting old entries, whenever new ones are inserted. It may be of use for caches holding memory-intense objects (it is for me, anyway). > The patch contains: > * the interface {{LimitedSizeMap}} > * the fully documented implementation {{LimitedSizeFifoMap}}, which deletes the oldest items first > * the accompanying unit test > If you find anything that needs improvement, please let me know. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.