Package edu.ucsb.cs156.courses.services
Class IsStaleService
java.lang.Object
edu.ucsb.cs156.courses.services.IsStaleService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Check if the data is stale for a given subject area and quarter
-
Constructor Details
-
IsStaleService
public IsStaleService()
-
-
Method Details
-
getCourseDataStaleThresholdMinutes
public int getCourseDataStaleThresholdMinutes() -
isStale
Check if the data is stale for a given subject area and quarter- Parameters:
subjectArea
- e.g. CMPSCquarterYYYYQ
- e.g. 20221 for Winter 2022- Returns:
- true if the data is stale, false otherwise
- Throws:
Exception
-