org.terracotta.async.scatterpolicies
Class FirstScatterPolicy
java.lang.Object
org.terracotta.async.scatterpolicies.FirstScatterPolicy
- All Implemented Interfaces:
- ScatterPolicy
Deprecated. Use SingleBucketScatterPolicy
@Deprecated
public class FirstScatterPolicy
- extends Object
- implements ScatterPolicy
A simplistic scatter policy that directs all work items in to the first bucket.
|
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 |
FirstScatterPolicy
public FirstScatterPolicy()
- 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.