
pl.allegro.tech.hermes.common.concurrent.DefaultExecutorServiceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-common Show documentation
Show all versions of hermes-common Show documentation
Fast and reliable message broker built on top of Kafka.
The newest version!
package pl.allegro.tech.hermes.common.concurrent;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
public class DefaultExecutorServiceFactory implements ExecutorServiceFactory {
@Override
public ScheduledExecutorService createSingleThreadScheduledExecutor(String nameFormat) {
return Executors.newSingleThreadScheduledExecutor(
new ThreadFactoryBuilder().setNameFormat(nameFormat).build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy