IdGeneratorit is very simple to create cluster wide id's.
Generates blocks with the help of an
This package contains IdGenerator functionality for Hazelcast.
IdGenerator it is very simple to create cluster wide id's.
This can also be done with the
IAtomicLong, but this would require
access to the cluster for every id generated. With the IdGenerator this is a lot more efficient
by claiming a whole check and only when the chunk is depleted, cluster access is needed.
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.