Package org.bitcoinj.utils
Class ContextPropagatingThreadFactory
- java.lang.Object
-
- org.bitcoinj.utils.ContextPropagatingThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public class ContextPropagatingThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactory
AThreadFactory
that propagates aContext
from the creating thread into the new thread. This factory creates daemon threads.
-
-
Constructor Summary
Constructors Constructor Description ContextPropagatingThreadFactory(java.lang.String name)
ContextPropagatingThreadFactory(java.lang.String name, int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Thread
newThread(java.lang.Runnable r)
-