Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B73C1188A3 for ; Sun, 9 Aug 2015 00:05:22 +0000 (UTC) Received: (qmail 30052 invoked by uid 500); 9 Aug 2015 00:05:17 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 29888 invoked by uid 500); 9 Aug 2015 00:05:17 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 29877 invoked by uid 99); 9 Aug 2015 00:05:17 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Aug 2015 00:05:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B4F29C0637 for ; Sun, 9 Aug 2015 00:05:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.98 X-Spam-Level: *** X-Spam-Status: No, score=3.98 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id W9Fy-Ic-6GZK for ; Sun, 9 Aug 2015 00:05:06 +0000 (UTC) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id EE53B34A9E for ; Sun, 9 Aug 2015 00:04:56 +0000 (UTC) Received: by obnw1 with SMTP id w1so101892213obn.3 for ; Sat, 08 Aug 2015 17:04:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; bh=dwzZdoCKTZ8VaVWrXkht69ozTTWKr6qF9QGTvnZLTDw=; b=BRup2DrCNFuqdPZEEyJq6C4Mws6eWuG0AMKeIuJcY/ynmj6xuHanbCJ6tSR+D9KYRo gVCAHON1BDwclCjZd7kwvv4c1JbKQ6mu3PI5O/rbWhcBPtBfWgR3S5HfJBkXW1hQAZEW UqWajFosRDUm57a6JBqOmiHYRO/zJhQJCc9Bq27xuh/b4mhcL6Tq8awuXUVRJkjBa9rb J/0O8clO52bydvok5osiJwkDsB6ItDAwbX0G/kG90AfBIjyoRXoO9F7QeZwFUbtyUg5e XkeK41yqorICDKM6b6yp4qLKO39d/zdC2NYDoeOMB83/mnY67usH+6RsWEtiHDLSYOd1 oOyA== X-Gm-Message-State: ALoCoQlDkS4XfYNLgSDzFX1EQE4awmYFH4B/9mBEvQgNHv+RdZDyK7OtvS03uueZbvQZx+otz2iE X-Received: by 10.60.136.131 with SMTP id qa3mr13179099oeb.34.1439078690353; Sat, 08 Aug 2015 17:04:50 -0700 (PDT) MIME-Version: 1.0 References: <55C69232.8070400@gmail.com> In-Reply-To: <55C69232.8070400@gmail.com> From: James Carman Date: Sun, 09 Aug 2015 00:04:40 +0000 Message-ID: Subject: Re: [pool] Interceptors To: Commons Developers List Content-Type: multipart/alternative; boundary=047d7b414f2a24ab97051cd59e2a --047d7b414f2a24ab97051cd59e2a Content-Type: text/plain; charset=UTF-8 We talked about this a while back with respect to logging,, having a PoolListener interface or something. On Sat, Aug 8, 2015 at 7:36 PM Phil Steitz wrote: > Tomcat's jdbc-pool has an interceptor feature that allows custom > code to be inserted into methods called on connections managed by > the pool. In [pool], we have the core infrastructure to support > this in a generic way via the ProxiedObjectPool. I propose that we > extend this to allow users to configure interceptors to be called > when registered methods are invoked on checked out objects. I > haven't really thought through how configuration would work, but > basically clients would register methods and possibly interceptor > properties and the interceptors would get references to the method, > arguments, pool and pooled object. Configuring interceptors in a > GOP or GKOP would cause it to be wrapped in a ProxiedObjectPool. > Eventually, we could use this [pool] capability to enable the kind > of thing that jdbc-pool provides with its interceptors in DBCP. > With [pool] itself, I could see providing method stats collectors, > abandoned timer reset (avoiding having to implement use()) and maybe > a pooled object properties cache. If there are no objections, I > will open a JIRA and start experimenting. > > Phil > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --047d7b414f2a24ab97051cd59e2a--