Package com.linecorp.armeria.common.util
Class EventLoopThreadFactory
- java.lang.Object
-
- com.linecorp.armeria.common.util.EventLoopThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
@Deprecated public final class EventLoopThreadFactory extends Object
Deprecated.UseThreadFactories.newEventLoopThreadFactory(String, boolean)
orThreadFactories.builder(String)
. Note that settingThreadFactoryBuilder.eventLoop(boolean)
true is required to create event loop threads, e.g.ThreadFactories.builder("myThreadNamePrefix").eventLoop(true).build()
.ThreadFactory
that creates event loop threads.- See Also:
EventLoopGroups
-
-
Constructor Summary
Constructors Constructor Description EventLoopThreadFactory(String threadNamePrefix)
Deprecated.Creates a new factory that creates a non-daemon and normal-priority thread.EventLoopThreadFactory(String threadNamePrefix, boolean daemon)
Deprecated.Creates a new factory that creates a normal-priority thread.EventLoopThreadFactory(String threadNamePrefix, boolean daemon, int priority)
Deprecated.Creates a new factory.EventLoopThreadFactory(String threadNamePrefix, boolean daemon, int priority, ThreadGroup threadGroup)
Deprecated.Creates a new factory.EventLoopThreadFactory(String threadNamePrefix, int priority)
Deprecated.Creates a new factory that creates a non-daemon thread.
-
-
-
Constructor Detail
-
EventLoopThreadFactory
public EventLoopThreadFactory(String threadNamePrefix)
Deprecated.Creates a new factory that creates a non-daemon and normal-priority thread.- Parameters:
threadNamePrefix
- the prefix of the names of the threads created by this factory.
-
EventLoopThreadFactory
public EventLoopThreadFactory(String threadNamePrefix, boolean daemon)
Deprecated.Creates a new factory that creates a normal-priority thread.- Parameters:
threadNamePrefix
- the prefix of the names of the threads created by this factory.daemon
- whether to create a daemon thread.
-
EventLoopThreadFactory
public EventLoopThreadFactory(String threadNamePrefix, int priority)
Deprecated.Creates a new factory that creates a non-daemon thread.- Parameters:
threadNamePrefix
- the prefix of the names of the threads created by this factory.priority
- the priority of the threads created by this factory.
-
EventLoopThreadFactory
public EventLoopThreadFactory(String threadNamePrefix, boolean daemon, int priority)
Deprecated.Creates a new factory.- Parameters:
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.
-
EventLoopThreadFactory
public EventLoopThreadFactory(String threadNamePrefix, boolean daemon, int priority, @Nullable ThreadGroup threadGroup)
Deprecated.Creates a new factory.- Parameters:
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
- theThreadGroup
.
-
-
Method Detail
-
newThread
public final Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-