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