Class IsStaleService

java.lang.Object
edu.ucsb.cs156.courses.services.IsStaleService

@Service("IsStaleService") @ConfigurationProperties public class IsStaleService extends Object
  • Constructor Details

    • IsStaleService

      public IsStaleService()
  • Method Details

    • getCourseDataStaleThresholdMinutes

      public int getCourseDataStaleThresholdMinutes()
    • isStale

      public boolean isStale(String subjectArea, String quarterYYYYQ) throws Exception
      Check if the data is stale for a given subject area and quarter
      Parameters:
      subjectArea - e.g. CMPSC
      quarterYYYYQ - e.g. 20221 for Winter 2022
      Returns:
      true if the data is stale, false otherwise
      Throws:
      Exception