Package org.infinispan.affinity.impl
Class RndKeyGenerator
- java.lang.Object
-
- org.infinispan.affinity.impl.RndKeyGenerator
-
- All Implemented Interfaces:
KeyGenerator<Object>
public class RndKeyGenerator extends Object implements KeyGenerator<Object>
Key provider that relies onRandom
's distribution to generate keys. It doesn't offer any guarantee that the keys are unique.- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
-
-
Constructor Summary
Constructors Constructor Description RndKeyGenerator()
-
-
-
Field Detail
-
rnd
public static final Random rnd
-
-
Method Detail
-
getKey
public Object getKey()
- Specified by:
getKey
in interfaceKeyGenerator<Object>
-
-