- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ScheduledThreadPoolExecutor s =
new ScheduledThreadPoolExecutor(corePoolSize)
ThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
String str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
- Smart code suggestions by Codota
}
@Override public CanaryJudgeResult judge(CanaryConfig canaryConfig, CanaryClassifierThresholdsConfig scoreThresholds, List<MetricSetPair> metricSetPairList) { RemoteJudgeService remoteJudge = retrofitClientFactory.createClient( RemoteJudgeService.class, new JacksonConverter(kayentaObjectMapper), endpoint, httpClient); RemoteJudgeRequest judgeRequest = RemoteJudgeRequest.builder() .canaryConfig(canaryConfig) .metricSetPairList(metricSetPairList) .scoreThresholds(scoreThresholds) .build(); return remoteJudge.judge(judgeRequest); } }
@Override public CanaryJudgeResult judge(CanaryConfig canaryConfig, CanaryClassifierThresholdsConfig scoreThresholds, List<MetricSetPair> metricSetPairList) { RemoteJudgeService remoteJudge = retrofitClientFactory.createClient( RemoteJudgeService.class, new JacksonConverter(kayentaObjectMapper), endpoint, httpClient); RemoteJudgeRequest judgeRequest = RemoteJudgeRequest.builder() .canaryConfig(canaryConfig) .metricSetPairList(metricSetPairList) .scoreThresholds(scoreThresholds) .build(); return remoteJudge.judge(judgeRequest); } }