Code example for ThreadFactory

Methods: newThread

0
 
	public static final ThreadFactory newCustomThreadFactory(final Customizer customizer) {
		return new ThreadFactory () {
			@Override 
			public Thread newThread(Runnable runnable) {
				Thread thread = defaultThreadFactory.newThread(runnable);
				customizer.apply(thread);
				return thread;
			} 
		}; 
 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE