org.terracotta.async
Interface ScatterPolicy

All Known Implementing Classes:
FirstScatterPolicy, RandomScatterPolicy

Deprecated. Please use ItemScatterPolicy

@Deprecated
public interface ScatterPolicy

Scatter policy instances control how items are distributed amongst the local buckets.


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.
 

Method Detail

selectBucket

int selectBucket(int count)
Deprecated. 
Returns a bucket index in the range 0 to (count - 1) to which an item should be assigned.

Parameters:
count - exclusive maximum index
Returns:
bucket index to use


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