Re: Do implementations of Watcher need to be thread-safe?

2010-07-21 Thread Benjamin Reed
as long as a watcher object is only used with a single ZooKeeper object 
it will be called by the same thread.


ben

On 07/21/2010 11:12 AM, Joshua Ball wrote:

Hi,

Do implementations of Watcher need to be thread-safe, or can I assume
that process(...) will always be called by the same thread?

Thanks,
Josh Ua Ball
   




Re: Do implementations of Watcher need to be thread-safe?

2010-07-21 Thread Joshua Ball
Thanks!

On Wed, Jul 21, 2010 at 11:23 AM, Benjamin Reed br...@yahoo-inc.com wrote:
 as long as a watcher object is only used with a single ZooKeeper object it
 will be called by the same thread.

 ben

 On 07/21/2010 11:12 AM, Joshua Ball wrote:

 Hi,

 Do implementations of Watcher need to be thread-safe, or can I assume
 that process(...) will always be called by the same thread?

 Thanks,
 Josh Ua Ball