The way to get your concurrent hash set is to use [Collections.newSetFromMap](http://docs.oracle.com/javase/6/docs/api/java/util/Collections.html#newSetFromMap%28java.util.Map%29):

```scala
  val successNodes = Collections.newSetFromMap(new ConcurrentHashMap[Int, Boolean])
```