hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Modify ZooKeeper Java client to hold weak references to Watcher objects
Date Thu, 18 Mar 2010 22:47:36 GMT
This kind of sounds strange to me.

My typical idiom is to create a watcher but not retain any references to it
outside the client.  It sounds to me like your change will cause my watchers
to be collected and deactivated when GC happens.

On Thu, Mar 18, 2010 at 3:32 AM, Dominic Williams <
thedwilliams@googlemail.com> wrote:

> The current ZooKeeper client holds strong references to Watcher objects. I
> want to change the client so it only holds weak references. Feedback
> please.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message