public class MorselComparator extends Object implements Comparator<Morsel>
MorselQueue. The intention
is to ensure that spaces that have been started get worked before spaces that
haven't. Also, ideally morsels from different accounts are evenly dispersed
throughout the queue. So, given those motivations, here's an initial stab at
the logic.
1. Morsels with non-null markers should go first.
2. Otherwise, order by space followed by domain.| Constructor and Description |
|---|
MorselComparator() |
public int compare(Morsel o1, Morsel o2)
compare in interface Comparator<Morsel>Copyright © 2013–2015 DuraSpace. All rights reserved.