public class AxonThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
AxonThreadFactory(int priority,
ThreadGroup group)
Initializes a ThreadFactory instance that create each thread in the given
group with given
priority. |
AxonThreadFactory(String groupName)
Initializes a ThreadFactory instance that creates each thread in a group with given
groupName with
default priority. |
AxonThreadFactory(ThreadGroup group)
Initializes a ThreadFactory instance that create each thread in the given
group with default
priority. |
public AxonThreadFactory(String groupName)
groupName with
default priority.groupName - The name of the group to create each thread inThread.setPriority(int)public AxonThreadFactory(ThreadGroup group)
group with default
priority.group - The ThreadGroup to create each thread inThread.setPriority(int)public AxonThreadFactory(int priority,
ThreadGroup group)
group with given
priority.priority - The priority of the threads to creategroup - The ThreadGroup to create each thread inThread.setPriority(int)public Thread newThread(@Nonnull Runnable r)
newThread in interface ThreadFactoryCopyright © 2010–2023. All rights reserved.