Package org.axonframework.common
Class AxonThreadFactory
java.lang.Object
org.axonframework.common.AxonThreadFactory
- All Implemented Interfaces:
ThreadFactory
Thread factory that created threads in a given group.
- Since:
- 2.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionAxonThreadFactory(int priority, ThreadGroup group) Initializes a ThreadFactory instance that create each thread in the givengroupwith givenpriority.AxonThreadFactory(String groupName) Initializes a ThreadFactory instance that creates each thread in a group with givengroupNamewith default priority.AxonThreadFactory(ThreadGroup group) Initializes a ThreadFactory instance that create each thread in the givengroupwith default priority. -
Method Summary
-
Constructor Details
-
AxonThreadFactory
Initializes a ThreadFactory instance that creates each thread in a group with givengroupNamewith default priority.- Parameters:
groupName- The name of the group to create each thread in- See Also:
-
AxonThreadFactory
Initializes a ThreadFactory instance that create each thread in the givengroupwith default priority.- Parameters:
group- The ThreadGroup to create each thread in- See Also:
-
AxonThreadFactory
Initializes a ThreadFactory instance that create each thread in the givengroupwith givenpriority.- Parameters:
priority- The priority of the threads to creategroup- The ThreadGroup to create each thread in- See Also:
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-