org.terracotta.async.scatterpolicies
Class RandomScatterPolicy

java.lang.Object
  extended by org.terracotta.async.scatterpolicies.RandomScatterPolicy
All Implemented Interfaces:
ScatterPolicy

Deprecated.

@Deprecated
public class RandomScatterPolicy
extends Object
implements ScatterPolicy


Constructor Summary
RandomScatterPolicy()
          Deprecated.  
 
Method Summary
 int selectBucket(int count)
          Deprecated. Returns a bucket index in the range 0 to (count - 1) to which an item should be assigned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomScatterPolicy

public RandomScatterPolicy()
Deprecated. 
Method Detail

selectBucket

public int selectBucket(int count)
Deprecated. 
Description copied from interface: ScatterPolicy
Returns a bucket index in the range 0 to (count - 1) to which an item should be assigned.

Specified by:
selectBucket in interface ScatterPolicy
Parameters:
count - exclusive maximum index
Returns:
bucket index to use


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.