class ClearComponentAnalysisCacheTask implements LoggableSubscriber {

    private static final Logger LOGGER = Logger.getLogger(ClearComponentAnalysisCacheTask.class);

    /**
     * {@inheritDoc}
     */
    public void inform(final Event e) {<FILL_FUNCTION_BODY>}
}

        if (e instanceof ClearComponentAnalysisCacheEvent) {
            LOGGER.info("Clearing ComponentAnalysisCache");
            try (QueryManager qm = new QueryManager()) {
                ConfigProperty cacheClearPeriod = qm.getConfigProperty(ConfigPropertyConstants.SCANNER_ANALYSIS_CACHE_VALIDITY_PERIOD.getGroupName(), ConfigPropertyConstants.SCANNER_ANALYSIS_CACHE_VALIDITY_PERIOD.getPropertyName());
                long cacheValidityPeriodMs = Long.parseLong(cacheClearPeriod.getPropertyValue());
                Date threshold = Date.from(Instant.now().minusMillis(cacheValidityPeriodMs));
                qm.clearComponentAnalysisCache(threshold);
            } catch (Exception ex) {
                LOGGER.error("An unknown error occurred while clearing component analysis cache", ex);
            }
            LOGGER.info("Complete");
        }
    
<no_super_class>