Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 9787 invoked from network); 24 Nov 2003 20:43:34 -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:43:34 -0000 Received: (qmail 94339 invoked by uid 500); 24 Nov 2003 20:43:17 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 94265 invoked by uid 500); 24 Nov 2003 20:43:17 -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 94167 invoked from network); 24 Nov 2003 20:43:16 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 24 Nov 2003 20:43:16 -0000 Received: (qmail 9603 invoked from network); 24 Nov 2003 20:43:26 -0000 Received: from 12-223-65-3.client.insightbb.com (HELO NAMRAC2247) (12.223.65.3) by minotaur-2.apache.org with SMTP; 24 Nov 2003 20:43:26 -0000 Received: from localhost ([127.0.0.1]) by NAMRAC2247 (JAMES SMTP Server 2.1.3) with SMTP ID 64 for ; Mon, 24 Nov 2003 15:42:13 -0500 (EST) From: "James Carman" To: "'Jakarta Commons Developers List'" Subject: RE: TimerMap Date: Mon, 24 Nov 2003 15:42:09 -0500 Organization: Carman Consulting, Inc. Message-ID: <003101c3b2cb$6efc0060$7c44058f@NAMRAC2247> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <59A58FAA-1EBE-11D8-8F4D-000393A577F4@25thstreet.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 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] 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 as a Map --since it's most common use cases are as a Map-- and the javadoc would spell out usage scenarios and challenges (something I will work on). I've changed two points: TimedMapKey is now private and the backing store is no longer synchronized (as per Arun's suggestions). Synchronization can be left to the client developer. Even though I wouldn't want to have client code accessing entries via iterator in normal usage, I don't think calling keySet() should throw an UnsupportedOperationException since examining the keySet of such a 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