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

public class ContextualThreadFactory<C> extends Object implements ThreadFactory
ThreadFactory decorator that contextualizes its threads.
Author:
Paul Ferraro
  • Constructor Details

    • ContextualThreadFactory

      public ContextualThreadFactory(ThreadFactory factory, C targetContext, ContextReference<C> contextReference)
      Constructs a contextual thread factory.
      Parameters:
      factory - the decorated thread factory
      targetContext - the context with which new thread tasks should run.
      contextReference - the context reference used by this thread factory
  • Method Details