public final class ActiveMQThreadFactory extends Object implements ThreadFactory
Constructor and Description |
---|
ActiveMQThreadFactory(String groupName,
boolean daemon,
ClassLoader tccl)
Construct a new instance.
|
ActiveMQThreadFactory(String groupName,
String prefix,
boolean daemon,
ClassLoader tccl)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
static ActiveMQThreadFactory |
defaultThreadFactory() |
boolean |
join(int timeout,
TimeUnit timeUnit)
It will wait all threads to finish
|
Thread |
newThread(Runnable command) |
public ActiveMQThreadFactory(String groupName, boolean daemon, ClassLoader tccl)
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 threadspublic ActiveMQThreadFactory(String groupName, String prefix, boolean daemon, ClassLoader tccl)
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 threadspublic Thread newThread(Runnable command)
newThread
in interface ThreadFactory
public boolean join(int timeout, TimeUnit timeUnit)
public static ActiveMQThreadFactory defaultThreadFactory()
Copyright © 2021 JBoss by Red Hat. All rights reserved.