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

org.frameworkset.schedule.CustomizableThreadFactory Maven / Gradle / Ivy

package org.frameworkset.schedule;

import java.util.concurrent.ThreadFactory;

import org.frameworkset.util.CustomizableThreadCreator;

public class CustomizableThreadFactory  extends CustomizableThreadCreator implements ThreadFactory {

	/**
	 * Create a new CustomizableThreadFactory with default thread name prefix.
	 */
	public CustomizableThreadFactory() {
		super();
	}

	/**
	 * Create a new CustomizableThreadFactory with the given thread name prefix.
	 * @param threadNamePrefix the prefix to use for the names of newly created threads
	 */
	public CustomizableThreadFactory(String threadNamePrefix) {
		super(threadNamePrefix);
	}


	@Override
	public Thread newThread(Runnable runnable) {
		return createThread(runnable);
	}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy