org.terracotta.async.scatterpolicies
Class FirstScatterPolicy

java.lang.Object
  extended by 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.


Constructor Summary
FirstScatterPolicy()
          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

FirstScatterPolicy

public FirstScatterPolicy()
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.