public class SingleBucketScatterPolicy<E extends Serializable> extends Object implements ItemScatterPolicy<E>
| Constructor and Description |
|---|
SingleBucketScatterPolicy() |
| Modifier and Type | Method and Description |
|---|---|
int |
selectBucket(int count,
E item)
Returns a bucket index in the range 0 to (count - 1) to which an item should be assigned.
|
public int selectBucket(int count,
E item)
ItemScatterPolicyselectBucket in interface ItemScatterPolicy<E extends Serializable>count - exclusive maximum indexitem - the item we are scattering across the bucketsCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.