org.infinispan.util
Class ClusterIdGenerator
java.lang.Object
org.infinispan.util.ClusterIdGenerator
public class ClusterIdGenerator
- extends Object
This class generates ids guaranteed to be unique cluster wide.
- Since:
- 4.1
- Author:
- Galder Zamarreno, Mircea Markus
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterIdGenerator
public ClusterIdGenerator(EmbeddedCacheManager cm,
RpcManager rpcManager)
newVersion
public long newVersion(boolean isClustered)
calculateRank
protected long calculateRank(Address address,
List<Address> members,
long viewId)
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.