curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dragonsinth <>
Subject [GitHub] curator pull request: CURATOR-144: TreeCache.Builder to configure ...
Date Thu, 28 Aug 2014 16:41:35 GMT
Github user dragonsinth commented on a diff in the pull request:
    --- Diff: curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/
    @@ -461,11 +546,16 @@ public void close()
          * @return listenable
    -    public ListenerContainer<TreeCacheListener> getListenable()
    +    public Listenable<TreeCacheListener> getListenable()
    --- End diff --
    It's just a surface area reduction.  Returning Listenable only allows a caller to add
and remove listeners (which you want).  Returning the subtype ListenableContainer would let
a caller manipulate the collection, i.e. size(), clear(), and forEach().  How weird would
it be for an external caller to be able to do `cache.getListenable().forEach(...)`?

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 or file a JIRA ticket
with INFRA.

View raw message