Class ContextualThreadFactory<C>
java.lang.Object
org.wildfly.clustering.context.ContextualThreadFactory<C>
- Type Parameters:
C- the context type
- All Implemented Interfaces:
ThreadFactory
- Direct Known Subclasses:
DefaultThreadFactory
ThreadFactory decorator that contextualizes its threads.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionContextualThreadFactory(ThreadFactory factory, C targetContext, ThreadContextReference<C> reference) -
Method Summary
-
Constructor Details
-
ContextualThreadFactory
public ContextualThreadFactory(ThreadFactory factory, C targetContext, ThreadContextReference<C> reference)
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-