本文整理了Java中org.sonar.api.config.Configuration.getLong()
方法的一些代码示例,展示了Configuration.getLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getLong()
方法的具体详情如下:
包路径:org.sonar.api.config.Configuration
类名称:Configuration
方法名:getLong
[英]Effective value as long.
[中]只要有效值。
代码示例来源:origin: SonarSource/sonarqube
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;
}
代码示例来源:origin: SonarSource/sonarqube
private long getSetting(String key, long defaultValue) {
long val = config.getLong(key).orElse(defaultValue);
LOGGER.debug(LOG_PREFIX + "{}={}", key, val);
return val;
}
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-server
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;
}
代码示例来源:origin: spotbugs/sonar-findbugs
public long getTimeout() {
return config.getLong(FindbugsConstants.TIMEOUT_PROPERTY).orElse(FindbugsConstants.TIMEOUT_DEFAULT_VALUE);
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-server
private long getSetting(String key, long defaultValue) {
long val = config.getLong(key).orElse(defaultValue);
LOGGER.debug(LOG_PREFIX + "{}={}", key, val);
return val;
}
}
内容来源于网络,如有侵权,请联系作者删除!