Interface PinnedThreadFactory
-
- All Superinterfaces:
java.util.concurrent.ThreadFactory
- All Known Implementing Classes:
FixedAffinityPinnedThreadFactory,GovernedAffinityPinnedThreadFactory
public interface PinnedThreadFactory extends java.util.concurrent.ThreadFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.sheinbergon.needle.PinnedThreadnewThread(java.lang.Runnable r)Constructs a newPinnedThread.
-
-
-
Method Detail
-
newThread
org.sheinbergon.needle.PinnedThread newThread(@Nonnull java.lang.Runnable r)Constructs a newPinnedThread.- 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
-
-