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

com.univocity.api.common.DaemonThreadFactory Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2013 Univocity Software Pty Ltd. All rights reserved.
 * This file is subject to the terms and conditions defined in file
 * 'LICENSE.txt', which is part of this source code package.
 */

package com.univocity.api.common;

import java.util.concurrent.*;

/**
 * A simple thread factory for creating daemon threads
 */
public class DaemonThreadFactory implements ThreadFactory {
	public Thread newThread(Runnable r) {
		Thread t = new Thread(r);
		t.setDaemon(true);
		return t;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy