org.sonar.api.config.Configuration.getLong()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.sonar.api.config.Configuration.getLong()方法的一些代码示例,展示了Configuration.getLong()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getLong()方法的具体详情如下:
包路径:org.sonar.api.config.Configuration
类名称:Configuration
方法名:getLong

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;
 }
}

相关文章