Class FixedAffinityPinnedThreadFactory
- java.lang.Object
-
- org.sheinbergon.needle.concurrent.FixedAffinityPinnedThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory,PinnedThreadFactory
public final class FixedAffinityPinnedThreadFactory extends java.lang.Object implements PinnedThreadFactory
-
-
Constructor Summary
Constructors Constructor Description FixedAffinityPinnedThreadFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.sheinbergon.needle.PinnedThreadnewThread(java.lang.Runnable r)Constructs a newPinnedThread.
-
-
-
Method Detail
-
newThread
public org.sheinbergon.needle.PinnedThread newThread(@Nonnull java.lang.Runnable r)Description copied from interface:PinnedThreadFactoryConstructs a newPinnedThread.- Specified by:
newThreadin interfacePinnedThreadFactory- Specified by:
newThreadin interfacejava.util.concurrent.ThreadFactory- Parameters:
r- a runnable to be executed by new thread instance- Returns:
- instantiated
PinnedThread, ornullif the request to create a thread is rejected
-
-