Right, I can leverage that. I could have a ConncurrentSkipListSet or
something with the nodes unique Id in it. If I add() the nodes unique Id to
the Set and it returns true, I know I can safely add children. If it
returns false then I know another thread beat me to it, and I can requeue
the
The only way I know of is to synchronize writes to the DB. This shouldn't
be a problem for me actually, even with a cluster, since what I really need
is for each node with a particular relationship to have a unique "name"
property, like how good parents would ensure their children all have un
2 matches
Mail list logo