org.infinispan.affinity
Class RndKeyGenerator
java.lang.Object
org.infinispan.affinity.RndKeyGenerator
- All Implemented Interfaces:
- KeyGenerator
public class RndKeyGenerator
- extends Object
- implements KeyGenerator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rnd
public static final Random rnd
RndKeyGenerator
public RndKeyGenerator()
getKey
public Object getKey()
- Specified by:
getKey
in interface KeyGenerator
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.