Flavio Paiva Junqueira commented on ZOOKEEPER-66:

I'm not entirely convinced that this is a good idea. The watcher is important 
for the communication between ZooKeeper and the client, and I can understand if 
you want to use a null watcher in the case you're implementing a quick program 
for debugging or perhaps test purposes, but in such cases implementing the 
Watcher interface and declaring a process method that does nothing doesn't seem 
like a huge burden to me. 

I'm affraid that by adding a null watcher, we'll give the impression to users 
that implementing a Watcher is not that important. 

> Add NullWatcher, a watcher that does nothing
> --------------------------------------------
>                 Key: ZOOKEEPER-66
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-66
>             Project: Zookeeper
>          Issue Type: New Feature
>          Components: java client
>            Reporter: Anthony Urso
>            Priority: Minor
>         Attachments: nullwatcher.diff
> I found that I was repeating this code all over the place. Here is a 
> NullWatcher class, a Watcher that does nothing at all.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to