Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 16748 invoked from network); 24 Nov 2003 20:53:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Nov 2003 20:53:45 -0000 Received: (qmail 11580 invoked by uid 500); 24 Nov 2003 20:53:33 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 11271 invoked by uid 500); 24 Nov 2003 20:53:31 -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 11258 invoked from network); 24 Nov 2003 20:53:31 -0000 Received: from unknown (HELO l0calh0stu1.localh0st.biz) (67.122.116.206) by daedalus.apache.org with SMTP; 24 Nov 2003 20:53:31 -0000 Received: from mail-1.solidusnetworks.com (xchange-internal [192.168.116.20]) by l0calh0stu1.localh0st.biz (8.12.10/8.12.7) with ESMTP id hAOJrnhe021657 for ; Mon, 24 Nov 2003 11:53:49 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message Subject: RE: TimerMap MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 24 Nov 2003 12:50:30 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: TimerMap Thread-Index: AcOyyy6/+6Y5IWGhSBiQn3tFiXgXvwAAL8Tg From: "Arun Thomas" To: "Jakarta Commons Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Actually, I'm only concerned about keySet().iterator() and = values().iterator(). Not about keySet() and values() :) =20 Perhaps something that can be worked in as we move forward? I think = this (the "ill-formedness" of the iterators) could be something captured = in docs today and implemented explicitly moving forward. Perhaps I'll = take a shot once we've got it checked in....=20 Now if only I can find my password for CVS :) I should be able to check = it in.... =20 -AMT -----Original Message----- From: James Carman [mailto:james@carmanconsulting.com]=20 Sent: Monday, November 24, 2003 12:42 PM To: 'Jakarta Commons Developers List' Subject: RE: TimerMap Maybe you could just go ahead and throw UnsupportedOperationException on = keySet(), but implement a generic debugCachingIssues() method! ;-) -----Original Message----- From: Joseph Rosenblum [mailto:joey@25thstreet.net]=20 Sent: Monday, November 24, 2003 3:40 PM To: Jakarta Commons Developers List Subject: Re: TimerMap Hey there, Thanks for all the feedback! Ideally, I think this makes the most sense=20 as a Map --since it's most common use cases are as a Map-- and the=20 javadoc would spell out usage scenarios and challenges (something I=20 will work on). I've changed two points: TimedMapKey is now private and the backing=20 store is no longer synchronized (as per Arun's suggestions).=20 Synchronization can be left to the client developer. Even though I wouldn't want to have client code accessing entries via=20 iterator in normal usage, I don't think calling keySet() should throw=20 an UnsupportedOperationException since examining the keySet of such a=20 map could be very useful in debugging caching issues. Thanks, -Joe Joseph Rosenblum | 25th Street Networks Easy, Reliable Web Hosting @ http://www.25thstreet.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org