net.ravendb.client.primitives.TimerService Maven / Gradle / Ivy
package net.ravendb.client.primitives;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
public class TimerService {
public static final ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor(runnable -> {
Thread thread = new Thread(runnable);
thread.setDaemon(true);
return thread;
});
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy