Flavio Paiva Junqueira commented on ZOOKEEPER-104:

Again on KeptSet.add, it seems to me that you can shrink your synchronized 
block. The only access to "this.set" is on the predicate of the if statement, 
and the call to create doesn't realy need to be synchronized, right? 

> KeptSet: a distributed data stucture backed by the children of a ZooKeeper 
> node
> -------------------------------------------------------------------------------
>                 Key: ZOOKEEPER-104
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-104
>             Project: Zookeeper
>          Issue Type: New Feature
>          Components: java client
>            Reporter: Anthony Urso
>            Priority: Minor
>         Attachments: ZOOKEEPER-104.patch
> Here is an implementation of a ZooKeeper backed Java Set. It should be 
> generally useful.

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