Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 84908 invoked from network); 4 May 2008 11:48:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2008 11:48:51 -0000 Received: (qmail 81710 invoked by uid 500); 4 May 2008 11:48:51 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 81682 invoked by uid 500); 4 May 2008 11:48:51 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 81671 invoked by uid 99); 4 May 2008 11:48:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2008 04:48:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bofh@redwerk.com designates 89.105.196.9 as permitted sender) Received: from [89.105.196.9] (HELO redwerk.com) (89.105.196.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2008 11:48:06 +0000 Received: from [92.113.65.37] (helo=jdevelop.priv) by redwerk.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1JschU-0000eZ-Vc for httpclient-users@hc.apache.org; Sun, 04 May 2008 13:48:19 +0200 Received: from bofh by jdevelop.priv with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JschI-000PGT-4P for httpclient-users@hc.apache.org; Sun, 04 May 2008 14:48:04 +0300 Date: Sun, 4 May 2008 14:48:04 +0300 From: Eugeny N Dzhurinsky To: httpclient-users@hc.apache.org Subject: Re: Connection Listener Message-ID: <20080504114804.GA97086@jdevelop.priv> Mail-Followup-To: httpclient-users@hc.apache.org References: <3f306a1b0805031320g1c4fa94i609904f99f02f162@mail.gmail.com> <1209898593.6211.0.camel@ubuntu> <20080504112829.GA96957@jdevelop.priv> <1209901360.6211.17.camel@ubuntu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <1209901360.6211.17.camel@ubuntu> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Checked: Checked by ClamAV on apache.org --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 04, 2008 at 01:42:40PM +0200, Oleg Kalnichevski wrote: > On Sun, 2008-05-04 at 14:28 +0300, Eugeny N Dzhurinsky wrote: > > On Sun, May 04, 2008 at 12:56:33PM +0200, Oleg Kalnichevski wrote: > > > On Sat, 2008-05-03 at 13:20 -0700, Ankur Shah wrote: > > > > Hi, > > > >=20 > > > > I am using MultiThreadedHttpConnectionManager with my HttpClient. I= would > > > > like to get notified when let's say the connection and/or the pool = goes > > > > down. Is there a way to register a callback listener that I can get= notified > > > > on? > > > >=20 > > > No, there is not > >=20 > > I guess he still can implement he's own pool and get such notifications, > > correct? > >=20 >=20 > This is correct. When using HttpClient 4.0 one does not even need to > implement a complete connection manager from scratch. > ThreadSafeClientConnManager in Httpclient 4.0 has a much more modular > architecture, so one can add all sort of notification callbacks just by > decorating existing classes. That's cool, will look forward to migrate my app to HC 4.0 :) --=20 Eugene N Dzhurinsky --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgdonAACgkQy/i/DoZLbHwrJQCgirUXYvDkQIB3rRC2xfoZ8xP7 uAYAnRZo+J+rRJDWzngAEMDCYD2ebkH1 =WJpR -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO--