curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cammckenzie <...@git.apache.org>
Subject [GitHub] curator pull request: Curator 161
Date Mon, 11 May 2015 03:13:30 GMT
Github user cammckenzie commented on a diff in the pull request:

    https://github.com/apache/curator/pull/56#discussion_r30011302
  
    --- Diff: curator-framework/src/main/java/org/apache/curator/framework/api/RemoveWatchesType.java
---
    @@ -0,0 +1,19 @@
    +package org.apache.curator.framework.api;
    +
    +import org.apache.zookeeper.Watcher.WatcherType;
    +
    +/**
    + * Builder to allow the specification of whether it is acceptable to remove client side
watch information
    + * in the case where ZK cannot be contacted. 
    + */
    +public interface RemoveWatchesType
    +{
    +   
    +    /**
    +     * Specify the type of watcher to be removed.
    +     * @param watcherType
    +     * @return
    +     */
    +    public RemoveWatchesLocal ofType(WatcherType watcherType);
    --- End diff --
    
    Done, it will now accept:
    client.watches().removeAll().forPath("/");


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message