I did not know about latches before, but have read docs and your code. Solution 
seems reasonable and nicer than the previous one. Despite I did not check its 
correctness in our concurrent environment, it looks like it is similar to the 
previous approach and there are no places for mistake.

22.03.2017, 00:07, "Edward Capriolo" <[email protected]>:
> I was doing some profiling with visualvm and I noticed this hotspot.
>
> https://issues.apache.org/jira/browse/GOSSIP-77
>
> https://github.com/apache/incubator-gossip/pull/44
>
> The next largest hotspot is the ListeningThread which blocks. We could
> consider doing that async. Either way 77 is nice.

Reply via email to