예제 #1
0
 @Override
 public int compare(PartitionContainer o1, PartitionContainer o2) {
   final long s1 = o1.getLastCleanupTime();
   final long s2 = o2.getLastCleanupTime();
   return (s1 < s2) ? -1 : ((s1 == s2) ? 0 : 1);
 }
예제 #2
0
 private boolean notInProcessableTimeWindow(PartitionContainer partitionContainer, long now) {
   return now - partitionContainer.getLastCleanupTime() < MIN_MILLIS_DIFF_BETWEEN_TWO_RUNS;
 }