ThreadFactories.newEventLoopThreadFactory(String, boolean) or
ThreadFactories.builder(String). Note that setting
ThreadFactoryBuilder.eventLoop(boolean) true is required to create event loop threads,
e.g. ThreadFactories.builder("myThreadNamePrefix").eventLoop(true).build().@Deprecated public final class EventLoopThreadFactory extends Object
ThreadFactory that creates event loop threads.EventLoopGroups@Deprecated public EventLoopThreadFactory(String threadNamePrefix)
ThreadFactories#newEventLoopThreadFactory(String, false) or
ThreadFactories.builder(String). Make sure to set
ThreadFactoryBuilder.eventLoop(boolean) true to create event loop threads.threadNamePrefix - the prefix of the names of the threads created by this factory.@Deprecated public EventLoopThreadFactory(String threadNamePrefix, boolean daemon)
ThreadFactories.newEventLoopThreadFactory(String, boolean) or
ThreadFactories.builder(String). Make sure to set
ThreadFactoryBuilder.eventLoop(boolean) true to create event loop threads.threadNamePrefix - the prefix of the names of the threads created by this factory.daemon - whether to create a daemon thread.@Deprecated public EventLoopThreadFactory(String threadNamePrefix, int priority)
ThreadFactories.builder(String). Make sure to set
ThreadFactoryBuilder.eventLoop(boolean) true to create event loop threads.threadNamePrefix - the prefix of the names of the threads created by this factory.priority - the priority of the threads created by this factory.@Deprecated public EventLoopThreadFactory(String threadNamePrefix, boolean daemon, int priority)
ThreadFactories.builder(String). Make sure to set
ThreadFactoryBuilder.eventLoop(boolean) true to create event loop threads.threadNamePrefix - the prefix of the names of the threads created by this factory.daemon - whether to create a daemon thread.priority - the priority of the threads created by this factory.@Deprecated public EventLoopThreadFactory(String threadNamePrefix, boolean daemon, int priority, ThreadGroup threadGroup)
ThreadFactories.builder(String). Make sure to set
ThreadFactoryBuilder.eventLoop(boolean) true to create event loop threads.threadNamePrefix - the prefix of the names of the threads created by this factory.daemon - whether to create a daemon thread.priority - the priority of the threads created by this factory.threadGroup - the ThreadGroup.public final Thread newThread(Runnable r)
newThread in interface ThreadFactoryCopyright © 2020 LeanCloud. All rights reserved.