
org.molgenis.data.jobs.JobExecutionConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-jobs Show documentation
Show all versions of molgenis-jobs Show documentation
Jobs framework and data model.
package org.molgenis.data.jobs;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
@Configuration
public class JobExecutionConfig
{
@Bean
public ExecutorService executorService()
{
return Executors.newCachedThreadPool(new ThreadFactoryBuilder().setNameFormat("molgenis-job-%d").build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy