org.terracotta.modules.async.stealpolicies
Class FallBehindStealPolicy<I>
java.lang.Object
org.terracotta.modules.async.stealpolicies.FallBehindStealPolicy<I>
- All Implemented Interfaces:
- StealPolicy<I>
public class FallBehindStealPolicy<I>
- extends Object
- implements StealPolicy<I>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FallBehindStealPolicy
public FallBehindStealPolicy(long maxAllowedFallBehind)
- Parameters:
maxAllowedFallBehind - the amount of milliseconds that the victim is allowed
to fall behind the thief before its work gets stolen
shouldSteal
public boolean shouldSteal(ProcessingBucket<I> victim,
ProcessingBucket<I> thief)
- Specified by:
shouldSteal in interface StealPolicy<I>
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.