org.terracotta.async.stealpolicies
Class NeverStealPolicy<I>
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NeverStealPolicy
public NeverStealPolicy()
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 fromthief - bucket doing the stealing
- Returns:
true if stealing is permitted
Copyright © 2015 Terracotta, Inc.. All Rights Reserved.