zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavio Paiva Junqueira (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ZOOKEEPER-66) Add NullWatcher, a watcher that does nothing
Date Sun, 06 Jul 2008 12:42:38 GMT

    [ 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.


Mime
View raw message