org.terracotta.async.scatterpolicies
Class RandomScatterPolicy
java.lang.Object
org.terracotta.async.scatterpolicies.RandomScatterPolicy
- All Implemented Interfaces:
- ScatterPolicy
Deprecated.
@Deprecated
public class RandomScatterPolicy
- extends Object
- implements ScatterPolicy
|
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 |
RandomScatterPolicy
public RandomScatterPolicy()
- Deprecated.
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.