public class HighestFIFOPrioritySorter extends Object implements PrioritySorter
Priority
for a WorkflowProcessor
using
a particular boostAmount
provided by a calling party. The
boostAmount
is computed based on a function that allows
boostAmount
to grow over time depending on
secondsBetweenBoosts
and a maximum boostCap
.Constructor and Description |
---|
HighestFIFOPrioritySorter(int secondsBetweenBoosts,
double boostAmount,
double boostCap) |
Modifier and Type | Method and Description |
---|---|
void |
sort(List<WorkflowProcessor> candidates)
Sorts the
List of WorkflowProcessor s that are ready to run
in a particular order specified by the sub-class implementing this method. |
public HighestFIFOPrioritySorter(int secondsBetweenBoosts, double boostAmount, double boostCap)
public void sort(List<WorkflowProcessor> candidates)
PrioritySorter
List
of WorkflowProcessor
s that are ready to run
in a particular order specified by the sub-class implementing this method.sort
in interface PrioritySorter
candidates
- The List
of WorkflowProcessor
s to sort in priority
order.Copyright © 1999-2015 Apache OODT. All Rights Reserved.