protected Thread newThread(Runnable r, String name) { return new FastThreadLocalThread(threadGroup, r, name); } }
public Thread newThread(final Runnable r) { final FastThreadLocalThread t = new FastThreadLocalThread(r, category + "-" + num++); return t; } }
protected Thread newThread(Runnable r, String name) { return new FastThreadLocalThread(threadGroup, r, name); } }
protected Thread newThread(Runnable r, String name) { return new FastThreadLocalThread(threadGroup, r, name); } }
@Override protected Thread wrapThread(ThreadGroup group, Runnable r, String name) { return new FastThreadLocalThread(group, r, name); }
@Override protected Thread wrapThread(ThreadGroup group, Runnable r, String name) { return new FastThreadLocalThread(group, r, name); }
public Thread newThread(final Runnable r) { final FastThreadLocalThread t = new FastThreadLocalThread(r, category + "-" + num++); return t; } }
@Override public Thread newThread(Runnable r) { String name = prefix + "_" + counter.incrementAndGet(); if (totalSize > 1) { name += "_" + totalSize; } Thread thread = new FastThreadLocalThread(r, name); thread.setDaemon(makeDaemons); if (thread.getPriority() != Thread.NORM_PRIORITY) { thread.setPriority(Thread.NORM_PRIORITY); } return thread; } }
final Thread cleanupThread = new FastThreadLocalThread(CLEANER_TASK); cleanupThread.setPriority(Thread.MIN_PRIORITY);
final Thread cleanupThread = new FastThreadLocalThread(CLEANER_TASK); cleanupThread.setPriority(Thread.MIN_PRIORITY);
final Thread cleanupThread = new FastThreadLocalThread(CLEANER_TASK); cleanupThread.setPriority(Thread.MIN_PRIORITY);
private ChannelFuture doStart(ServerPort port) { final ServerBootstrap b = new ServerBootstrap(); serverBootstrap = b; config.channelOptions().forEach((k, v) -> { @SuppressWarnings("unchecked") final ChannelOption<Object> castOption = (ChannelOption<Object>) k; b.option(castOption, v); }); config.childChannelOptions().forEach((k, v) -> { @SuppressWarnings("unchecked") final ChannelOption<Object> castOption = (ChannelOption<Object>) k; b.childOption(castOption, v); }); b.group(EventLoopGroups.newEventLoopGroup(1, r -> { final FastThreadLocalThread thread = new FastThreadLocalThread(r, bossThreadName(port)); thread.setDaemon(false); return thread; }), config.workerGroup()); b.channel(TransportType.detectTransportType().serverChannelType()); b.handler(connectionLimitingHandler); b.childHandler(new HttpServerPipelineConfigurator(config, port, sslContexts, gracefulShutdownSupport)); return b.bind(port.localAddress()); }
protected Thread newThread(Runnable r, String name) { return new FastThreadLocalThread(threadGroup, r, name); } }
final Thread cleanupThread = new FastThreadLocalThread(CLEANER_TASK); cleanupThread.setPriority(Thread.MIN_PRIORITY);
public Thread newThread(final Runnable r) { final FastThreadLocalThread t = new FastThreadLocalThread(r, category + "-" + num++); return t; } }
@Override public Thread newThread(Runnable r) { return new FastThreadLocalThread(r, "db-dmlcall-" + count.incrementAndGet()); } };
public static Thread createThread(ThreadGroup threadGroup, Runnable runnable, String name, boolean daemon) { Thread thread = new FastThreadLocalThread(threadGroup, threadLocalDeallocator(runnable), name); thread.setDaemon(daemon); return thread; } }
SEPWorker(Long workerId, Work initialState, SharedExecutorPool pool) { this.pool = pool; this.workerId = workerId; thread = new FastThreadLocalThread(this, pool.poolName + "-Worker-" + workerId); thread.setDaemon(true); set(initialState); thread.start(); }
SEPWorker(Long workerId, Work initialState, SharedExecutorPool pool) { this.pool = pool; this.workerId = workerId; thread = new FastThreadLocalThread(this, pool.poolName + "-Worker-" + workerId); thread.setDaemon(true); set(initialState); thread.start(); }
public static Thread createThread(ThreadGroup threadGroup, Runnable runnable, String name, boolean daemon) { Thread thread = new FastThreadLocalThread(threadGroup, threadLocalDeallocator(runnable), name); thread.setDaemon(daemon); return thread; } }