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

net.eightlives.friendlyssl.config.SchedulerConfig Maven / Gradle / Ivy

package net.eightlives.friendlyssl.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

@Configuration
public class SchedulerConfig {

    @Bean(name = "update-checker-scheduler")
    public ScheduledExecutorService scheduler() {
        return Executors.newSingleThreadScheduledExecutor();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy