Class ActiveMQThreadFactory
- java.lang.Object
-
- org.apache.activemq.artemis.utils.ActiveMQThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public final class ActiveMQThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactory
-
-
Constructor Summary
Constructors Constructor Description ActiveMQThreadFactory(java.lang.String groupName, boolean daemon, java.lang.ClassLoader tccl)Construct a new instance.ActiveMQThreadFactory(java.lang.String groupName, java.lang.String prefix, boolean daemon, java.lang.ClassLoader tccl)Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActiveMQThreadFactorydefaultThreadFactory()booleanjoin(int timeout, java.util.concurrent.TimeUnit timeUnit)It will wait all threads to finishjava.lang.ThreadnewThread(java.lang.Runnable command)
-
-
-
Constructor Detail
-
ActiveMQThreadFactory
public ActiveMQThreadFactory(java.lang.String groupName, boolean daemon, java.lang.ClassLoader tccl)Construct a new instance. The access control context of the calling thread will be the one used to create new threads if a security manager is installed.- Parameters:
groupName- the name of the thread group to assign threads to by defaultdaemon- whether the created threads should be daemon threadstccl- the context class loader of newly created threads
-
ActiveMQThreadFactory
public ActiveMQThreadFactory(java.lang.String groupName, java.lang.String prefix, boolean daemon, java.lang.ClassLoader tccl)Construct a new instance. The access control context of the calling thread will be the one used to create new threads if a security manager is installed.- Parameters:
groupName- the name of the thread group to assign threads to by defaultdaemon- whether the created threads should be daemon threadstccl- the context class loader of newly created threads
-
-
Method Detail
-
newThread
public java.lang.Thread newThread(java.lang.Runnable command)
- Specified by:
newThreadin interfacejava.util.concurrent.ThreadFactory
-
join
public boolean join(int timeout, java.util.concurrent.TimeUnit timeUnit)It will wait all threads to finish
-
defaultThreadFactory
public static ActiveMQThreadFactory defaultThreadFactory()
-
-