All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.etsy.statsd.profiler.worker.ProfilerShutdownHookWorker Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.etsy.statsd.profiler.worker;

import com.etsy.statsd.profiler.Profiler;

import java.util.Collection;

/**
 * Worker thread for profiler shutdown hook
 *
 * @author Andrew Johnson
 */
public class ProfilerShutdownHookWorker implements Runnable {
    private Collection profilers;

    public ProfilerShutdownHookWorker(Collection profilers) {
        this.profilers = profilers;
    }

    @Override
    public void run() {
        for (Profiler p : profilers) {
            p.flushData();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy