org.terracotta.async.stealpolicies
Class NeverStealPolicy<I>

java.lang.Object
  extended by org.terracotta.async.stealpolicies.NeverStealPolicy<I>
All Implemented Interfaces:
StealPolicy<I>

public class NeverStealPolicy<I>
extends Object
implements StealPolicy<I>

A simplistic policy that never allows stealing to occur.


Constructor Summary
NeverStealPolicy()
           
 
Method Summary
 boolean shouldSteal(ProcessingBucket<I> victim, ProcessingBucket<I> thief)
          Returns true if the thief bucket can steal work items from the victim bucket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeverStealPolicy

public NeverStealPolicy()
Method Detail

shouldSteal

public boolean shouldSteal(ProcessingBucket<I> victim,
                           ProcessingBucket<I> thief)
Description copied from interface: StealPolicy
Returns true if the thief bucket can steal work items from the victim bucket.

Specified by:
shouldSteal in interface StealPolicy<I>
Parameters:
victim - bucket being stolen from
thief - bucket doing the stealing
Returns:
true if stealing is permitted


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