public FastForwardReporter build()

in ffwd-reporter/src/main/java/com/spotify/metrics/ffwd/FastForwardReporter.java [189:205]


        public FastForwardReporter build() throws IOException {
            final FastForward client =
                this.client != null ? this.client : FastForward.setup(host, port);
            final TagExtractor tagExtractor =
                this.tagExtractor != null ? this.tagExtractor : new NoopTagExtractor();
            final boolean executorOwner;
            final ScheduledExecutorService executorService;
            if (this.executorService != null) {
                executorService = this.executorService;
                executorOwner = false;
            } else {
                executorService = createExecutor();
                executorOwner = true;
            }
            return new FastForwardReporter(registry, prefix, unit, time, client,
                histogramPercentiles, tagExtractor, executorService, executorOwner);
        }