Refine search
private static ThreadFactory buildThreadFactory(String nameFormat) { return r -> { final Thread thread = Executors.defaultThreadFactory().newThread(r); if (nameFormat != null) { thread.setName(String.format(Locale.ROOT, nameFormat, COUNT.incrementAndGet())); } return thread; }; }
private static ThreadFactory buildThreadFactory(String nameFormat, boolean daemon) { return r -> { final Thread thread = Executors.defaultThreadFactory().newThread(r); if (nameFormat != null) { thread.setName(String.format(Locale.ROOT, nameFormat, COUNT.incrementAndGet())); } thread.setDaemon(daemon); return thread; }; }
@Override public Thread newThread(Runnable runnable) { Thread thread = Executors.defaultThreadFactory().newThread(runnable); thread.setDaemon(true); return thread; } }
@Override public Thread newThread(Runnable r) { Thread t = Executors.defaultThreadFactory().newThread(r); t.setDaemon(true); return t; } }
public Thread newThread(Runnable r) { Thread t = Executors.defaultThreadFactory().newThread(r); t.setName("instance-profile-credentials-refresh"); t.setDaemon(true); return t; } });
@Override public Thread newThread(Runnable arg0) { Thread thread = Executors.defaultThreadFactory().newThread(arg0); thread.setDaemon(true); return thread; } });
@Override public Thread newThread(Runnable arg0) { Thread thread = Executors.defaultThreadFactory().newThread(arg0); //设置守护线程 thread.setDaemon(daemon); return thread; } });
@Override public Thread newThread(Runnable r) { Thread t = Executors.defaultThreadFactory().newThread(r); t.setDaemon(true); return t; } });
@Override public Thread newThread(Runnable arg0) { Thread thread = Executors.defaultThreadFactory().newThread(arg0); //设置守护线程 thread.setDaemon(daemon); return thread; } });
@Override public Thread newThread(Runnable runnable) { Thread thread = Executors.defaultThreadFactory().newThread(runnable); thread.setName("invalidate-repos-" + thread.getId()); return thread; } });
@Override public Thread newThread(Runnable runnable) { Thread thread = Executors.defaultThreadFactory().newThread(runnable); thread.setName("search-" + thread.getId()); return thread; } });
@Override public Thread newThread(final Runnable r) { final Thread t = Executors.defaultThreadFactory().newThread(r); t.setName("Index Provenance Events"); return t; } });
public Thread newThread( Runnable r ) { Thread t = Executors.defaultThreadFactory().newThread( r ); t.setDaemon( true ); t.setName( CarteStatusCache.class.getSimpleName() ); return t; } } );
@Override public Thread newThread(Runnable r) { Thread t = Executors.defaultThreadFactory().newThread(r); t.setName("CachedStore-CacheUpdateService: Thread-" + t.getId()); t.setDaemon(true); return t; } });
@Override public Thread newThread( Runnable r ) { Thread thread = Executors.defaultThreadFactory().newThread( r ); thread.setDaemon( true ); thread.setName( SIMPLE_NAME + " thread " + threadNum.getAndIncrement() ); return thread; } } );
@Override public Thread newThread(final Runnable r) { final Thread t = Executors.defaultThreadFactory().newThread(r); t.setName("Notification Service Dispatcher"); t.setDaemon(true); return t; } });
@Override public Thread newThread(final Runnable runnable) { final Thread t = Executors.defaultThreadFactory().newThread(runnable); t.setDaemon(true); t.setName("NiFi Bootstrap Command Listener"); return t; } });
@Override public Thread newThread(final Runnable r) { final Thread thread = Executors.defaultThreadFactory().newThread(r); thread.setName("Http Site-to-Site Transaction Maintenance"); thread.setDaemon(true); return thread; } });
@Override public Thread newThread(final Runnable r) { final Thread thread = Executors.defaultThreadFactory().newThread(r); thread.setName("Variable Registry Update Thread"); thread.setDaemon(true); return thread; } });
@Override public Thread newThread(final Runnable runnable) { final Thread t = Executors.defaultThreadFactory().newThread(runnable); t.setDaemon(true); t.setName("NiFi logging handler"); return t; } });