org.infinispan.util
Class ClusterIdGenerator

java.lang.Object
  extended by 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

Nested Class Summary
 class ClusterIdGenerator.RankCalculator
           
 
Constructor Summary
ClusterIdGenerator(EmbeddedCacheManager cm, Transport transport)
           
 
Method Summary
protected  long calculateRank(Address address, List<Address> members, long viewId)
           
 long newVersion(boolean isClustered)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterIdGenerator

public ClusterIdGenerator(EmbeddedCacheManager cm,
                          Transport transport)
Method Detail

newVersion

public long newVersion(boolean isClustered)

calculateRank

protected long calculateRank(Address address,
                             List<Address> members,
                             long viewId)

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.