You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org> on 2008/07/06 14:42:38 UTC
[jira] Commented: (ZOOKEEPER-66) Add NullWatcher, a watcher that
does nothing
[ https://issues.apache.org/jira/browse/ZOOKEEPER-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610748#action_12610748 ]
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.