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

com.tapstream.sdk.DaemonThreadFactory Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package com.tapstream.sdk;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;


public class DaemonThreadFactory implements ThreadFactory {

    private final ThreadFactory defaultThreadFactory = Executors.defaultThreadFactory();

    @Override
    public Thread newThread(Runnable r) {
        Thread t = defaultThreadFactory.newThread(r);
        t.setDaemon(true);
        return t;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy