
com.etsy.statsd.profiler.worker.ProfilerShutdownHookWorker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of statsd-jvm-profiler Show documentation
Show all versions of statsd-jvm-profiler Show documentation
Simple JVM profiler using StatsD
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 - 2025 Weber Informatics LLC | Privacy Policy