@Test public void isProcessedChangeSet() { context.setProcessedChangeSet(5); for (int i = 0; i <= 5; i++) { assertThat(context.isProcessedChangeSet(i)).isTrue(); } }
public boolean isProcessedChangeSet(long changeSetId) { return changeSetId <= lastProcessedChangeSetId; }
SolverHandlerContext { public boolean isProcessedChangeSet(long changeSetId) { return changeSetId <= lastProcessedChangeSetId; } }
SolverHandlerContext { public boolean isProcessedChangeSet(long changeSetId) { return changeSetId <= lastProcessedChangeSetId; } SolverHandlerContext(Duration queryShift); }
SolverHandlerContext { public boolean isProcessedChangeSet(long changeSetId) { return changeSetId <= lastProcessedChangeSetId; } SolverHandlerContext(Duration queryShift); long getCurrentChangeSetId(); void setCurrentChangeSetId(long currentChangeSetId); long nextChangeSetId(); boolean isProcessedChangeSet(long changeSetId); boolean isCurrentChangeSetProcessed(); void setProcessedChangeSet(long changeSetId); void clearProcessedChangeSet(); void setTaskChangeTime(long taskId, LocalDateTime changeTime); boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime); void clearTaskChangeTimes(LocalDateTime untilLocalDateTime); void clearTaskChangeTimes(); LocalDateTime getPreviousQueryTime(); void setPreviousQueryTime(LocalDateTime previousQueryTime); LocalDateTime getNextQueryTime(); void setNextQueryTime(LocalDateTime nextQueryTime); LocalDateTime shiftQueryTime(LocalDateTime queryTime); }
SolverHandlerContext { public boolean isProcessedChangeSet(long changeSetId) { return changeSetId <= lastProcessedChangeSetId; } SolverHandlerContext(Duration queryShift); long getCurrentChangeSetId(); void setCurrentChangeSetId(long currentChangeSetId); long nextChangeSetId(); boolean isProcessedChangeSet(long changeSetId); boolean isCurrentChangeSetProcessed(); void setProcessedChangeSet(long changeSetId); void clearProcessedChangeSet(); void setTaskChangeTime(long taskId, LocalDateTime changeTime); boolean isProcessedTaskChange(long taskId, LocalDateTime changeTime); void clearTaskChangeTimes(LocalDateTime untilLocalDateTime); void clearTaskChangeTimes(); LocalDateTime getPreviousQueryTime(); void setPreviousQueryTime(LocalDateTime previousQueryTime); LocalDateTime getNextQueryTime(); void setNextQueryTime(LocalDateTime nextQueryTime); LocalDateTime shiftQueryTime(LocalDateTime queryTime);  }