public NotificationDaemon(Configuration config, DefaultNotificationManager manager, NotificationService service) { this.delayInSeconds = config.getLong(PROPERTY_DELAY).get(); this.delayBeforeReportingStatusInSeconds = config.getLong(PROPERTY_DELAY_BEFORE_REPORTING_STATUS).get(); this.manager = manager; this.service = service; }
private long getSetting(String key, long defaultValue) { long val = config.getLong(key).orElse(defaultValue); LOGGER.debug(LOG_PREFIX + "{}={}", key, val); return val; } }
public NotificationDaemon(Configuration config, DefaultNotificationManager manager, NotificationService service) { this.delayInSeconds = config.getLong(PROPERTY_DELAY).get(); this.delayBeforeReportingStatusInSeconds = config.getLong(PROPERTY_DELAY_BEFORE_REPORTING_STATUS).get(); this.manager = manager; this.service = service; }
public long getTimeout() { return config.getLong(FindbugsConstants.TIMEOUT_PROPERTY).orElse(FindbugsConstants.TIMEOUT_DEFAULT_VALUE); }
private long getSetting(String key, long defaultValue) { long val = config.getLong(key).orElse(defaultValue); LOGGER.debug(LOG_PREFIX + "{}={}", key, val); return val; } }