|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.common.AxonThreadFactory
public class AxonThreadFactory
Thread factory that created threads in a given group.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
Thread |
newThread(Runnable r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |