org.infinispan.affinity
Class RndKeyGenerator

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

Field Summary
static Random rnd
           
 
Constructor Summary
RndKeyGenerator()
           
 
Method Summary
 Object getKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rnd

public static final Random rnd
Constructor Detail

RndKeyGenerator

public RndKeyGenerator()
Method Detail

getKey

public Object getKey()
Specified by:
getKey in interface KeyGenerator

-->

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